April 2008
Intermediate to advanced
704 pages
17h 49m
English
Problem
You need to search an XML document for nodes using advanced search criteria.
Solution
Execute an XPath expression using the XPathSelectElement or XPathSelectElements extension method of the System.Xml.XPath.Extensions class.
How It Works
The Extensions class defines two extension methods that allow you to perform XPath searches on an XNode: XPathSelectElement and XPathSelectElements. These methods operate on all contained child nodes. You can easily search on the entire XML tree by calling either of the methods from XDocument. Root or an instance of XElement that reflects the top level of the tree. You can also search on only a portion of the XML tree depending on the contents of your source XElement ...
Read now
Unlock full access