thecoop
thecoop

Reputation: 46098

Processing XML without loading entire document in memory?

I'm looking for a .NET XPathNavigator that can read XML without loading the entire document in memory (which is what XPathDocument does). Is there a class that does this, or do I have to write my own?

Upvotes: 1

Views: 479

Answers (1)

Cheeso
Cheeso

Reputation: 192467

Try System.Xml.XmlReader if you want to read in a stream.

I don't know of an XPathNavigator that navigates on a XML stream. you may have to build that.

You could call it AmnesiacXPathNavigator, because it would have to read through the stream anew, for every xpath query you evaluate on it.

Upvotes: 7

Related Questions