Other than defining your own subset of forward-only XPath and writing
your own XmlReader with XPath support the only other method is to layer
the XPathNavigator API on top of the XmlReader API. However since the
XPathNavigator has a full XPath engine that allows reverse-axis there
will be queries that fail on the forward-only reader. Also since the
XmlReader cannot have it's state cloned this limits how you can layer
the XPathNavigator.

There is an example supplied in which provides limited forward-only
XPath (see near end of article)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnmag01
/html/xml0109.asp


-----Original Message-----
From: Prabhu, Neelesh (CAP, CARD, KPMG Consulting)
[mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 09, 2002 8:42 AM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] XPath without

<snip>
The XPathNavigator facilitates the ability to perform XPath queries over
any
store implementing the IXPathNavigable interface. The three classes that
implement the IXPathNavigable interface are XPathDocument, XmlDocument,
and
XmlDataDocument.
</snip>
XPathNavigator provides the cursor-like interface. The store classes are
responsible for loading the data.
Please note all the three classes load the whole DOM tree into memory.
XPathDocument loads a optimized version  of the DOM as it supports read
only
access.
<Neelesh/>

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to