Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XPath question 1

Status
Not open for further replies.

satellite03

IS-IT--Management
Dec 26, 2003
248
IN
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>

<bookstore>

<book>
  <title lang="eng">Harry Potter</title>
  <price>29.99</price>
</book>

<book>
  <title lang="eng">Learning XML</title>
  <price>39.95</price>
</book>

</bookstore>


what are the meaning of XPath axis like

child::book -->Selects all book nodes that are children of the current node

means ? according to this example what would be the output ?......this "child" keyword is painfull!!!

attribute::lang-->Selects the lang attribute of the current node

means ? according to this example what would be the output ?
 
Sir, i have a got a hope to learn XML ,XPath etc after your answers. i browsed a lot..but never got this tutorial through google....its very good sir. i see you are XML guru.

thank you very much sir
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top