XML Using Xpath Program

XML and XPath Program: Xpath is called for finding the information within the document.

 

What is XPath?
  1. XPath is a syntax to define the parts of XML document.
  2. XPath uses the path expressions to navigate in XML documents.
  3. XPath contains a library of the standard functions.
  4. XPath is a major element in XSLT.
  5. XPath is also used in XQuery, XPointer and XLink.
  6. XPath is a W3C recommendation. 
Softwares
 
XML copy Editor, XEditor. 
 
Program  
  1. <book>  
  2.     <title>XML</title>  
  3.     <author>Erik T. Ray</author>  
  4.     <year>2003</year>  
  5.     <price>300</price>  
  6. </book>  
Xpath
 
/book 
 
output

XML
Erik T. Ray
2003
300
 
Xpath
 
/book/author
 
output
 
Erik T. Ray