alpha wrote:
Hi Friends, When we need the xpath namespace as we can traverse the
xml document using xmldocument object like using selectSingleNode or
selectNodes methods. In system.xml.xpath namespace we have to use
XPathNavigator , XPathExpression , XPathNodeIterator class to get the
same result what we get it thru selectNodes ....and that too iterator
can be traversed in forward direction only.
Please tell me the usage of system.xml.xpath other than performance.
Hehe, as a matter of interest, SelectNodes is just a wrapper around
XPathNavigator :)
XPathNavigator allows more advanced things to be done, say caching
compiled XPath expressions, adding sorting to selections, extending by
providing custom XPath extension functions etc.
--
Oleg Tkachenko
XML Insider
http://www.tkachenko.com/blog