- http://oreilly.com/catalog/9780596002916/
- http://examples.oreilly.com/9780596002916/xpathxpointer.txt
- https://library.oreilly.com/book/9780596002916/xpath-and-xpointer/toc (for owners only)
- https://learning.oreilly.com/library/view/xpath-and-xpointer/0596002912/
- http://commons.oreilly.com – the O’Reilly Commons wiki
- http://commons.oreilly.com/wiki/index.php/XPath_and_XPointer – the book is also available online and for free
Update 2011-03-05:
Happily acquired the PDF e-book.
Lots of nice XPath examples … – now: practice, practice, practice!Update 2011-03-09:
This book is also available online and for free here, on the O’Reilly Commons wiki.
Lots of nice XPath examples … – now: practice, practice, practice!Update 2011-03-09:
This book is also available online and for free here, on the O’Reilly Commons wiki.
Update 2016-02-19:
I really like exercising the examples (for the URL see above!) using xmlstartlet. Instead of writing a script in Perl or Python or even some code in Java, nowadays (and for quite a while) you can process XML in a shell script using xmlstartlet, and this books shows you the way.
I really like exercising the examples (for the URL see above!) using xmlstartlet. Instead of writing a script in Perl or Python or even some code in Java, nowadays (and for quite a while) you can process XML in a shell script using xmlstartlet, and this books shows you the way.
I am rewriting an “old” shell script that dealt with XML using fgrep and sed; of course with using proper XPath through xmlstartlet is so much more appropriate. Quite possibly the next step may be to replace “shell + XPath” with “Python + XPath”.
My shell script actually enquires Jenkins (CI), and Jenkins also offers a JSON interface, and nowadays you would deal with that using JQ, which is a little like XPath for JSON.