tags:

views:

156

answers:

1

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?

+6  A: 

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.

Cheeso