Using XMLreader and xpath in large xml-file C#
问题 So I have this rather large XML-file i need to parse and I don't want to load the whole file in memory. The XML looks something like this: <root> <node attrib ="true"> <child childattrib=1> </child> </node> <node attrib ="false"> <child childattrib=1> </child> </node> </root> What I want to do is go through each node named node and see if the attribute matches my search-critera. And I want to do it using xpath. I found Parse xml in c# : combine xmlreader and linq to xml which helps me isolate