hi all,
im new to use xpath and xquery in asp.net
how can i implement xpath and xquery in my asp.net/c# projects
when i goen through simple html examples in w3schools site it was not working ..
i dont know whether the mistake with me or not...

please guide me ..need some sample to show how to execute the xpath and xquery in the asp.net

thanks in advance
MUTHU

Jitendra Faye replied to muthuraman alexander on 27-Oct-11 07:44 AM

Follow this link -

http://www.4guysfromrolla.com/articles/071603-1.aspx

Here you will get tutorial.

dipa ahuja replied to muthuraman alexander on 27-Oct-11 07:47 AM

XQuery

XQuery is a new XML Query Language, which is a work in progress by the XML Query Working Group of the W3C

XPATH

The W3C (the World Wide Web Consortium, http://www.w3.org) published the XML 1.0 specification on February 10th, 1998. The XML 1.1 specification was published six years later, on February 4th, 2004. In these six years, XML has taken the industry by storm. XML has become the standard for how to describe and exchange data.

XPath you use to get a XmlNodeList or XmlNode from XmlNode/XmlDocument: XmlNodeList = xmlDocument.DocumentElement.SelectNodes("descendant-or-self::someNode[@someAtribute='something']");
XSLT you use in XslCompiledTransform to convert a XML in another like xslCompiledTransform.Load(xsltString); xslCompiledTransform.Transform(xmlReader, xmlWriter).
<root>
<itemsA>
<item id="1">this is result</item>
<item id="2">abc</item>
</itemsA>
<itemsB>
<item id="1">fff</item>
</itemsB>
</root>