O’Reilly Media book: XPath and XPointer

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.
 
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 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.

Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.