I am not an expert in XPath. We included just enough in the book to give you some navigation adn seelectio nin XML files. If your data source is XML, it would be very bebficial to study a true XPat book.
Here is how I think of it:
/ is the child and * is the woldcard for all nodes in that child. so genre/book gies all books. But genre/* gies all books and also any other nodes, like CDs or DVDs.
The @ means teh next word is a named attribute, not a node name.
There is also a whole set of commands beginning with $ that can be used for logical tests, like greater then.
|