satellite03
IS-IT--Management
i am studying from tutorial...
things are written there like...
Path Expression Result
================ ==========
bookstore Selects all the child nodes of the bookstore element
/bookstore Selects the root element bookstore
whats the difference between two ?
is not it both of them will give
?
things are written there like...
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>
Path Expression Result
================ ==========
bookstore Selects all the child nodes of the bookstore element
/bookstore Selects the root element bookstore
whats the difference between two ?
is not it both of them will give
Code:
<book>
<title lang="eng">Harry Potter</title>
<price>29.99</price>
</book>
<book>
<title lang="eng">Learning XML</title>
<price>39.95</price>
</book>