- https://en.wikipedia.org/wiki/XMLStarlet
- https://de.wikipedia.org/wiki/XMLStarlet
- http://xmlstar.sourceforge.net
- http://xmlstar.sourceforge.net/docs.php
- http://xmlstar.sourceforge.net/doc/UG/xmlstarlet-ug.html – User’s Guide
- http://xmlstar.sourceforge.net/doc/UG/xmlstarlet-ug.html#idm47077139502176 – the User’s Guide section on “Other XmlStarlet Resources” (with a few broken links)
- http://xmlstar.sourceforge.net/doc/xmlstarlet.txt – yet another document called “User’s Guide” but with more rather educative examples
- http://www.ibm.com/developerworks/library/x-starlet
- http://www.heise.de/ct/inhalt/15/14/172 — behind a paywall; my PDF copy lives on my archive at: Computers/Data_Formats/Markup_Languages/XML/Addressing_and_Querying/XPath/
- http://www.freesoftwaremagazine.com/articles/xml_starlet
CAVEAT: “xmlstarlet sel --template --value-of XPATH
” lists all values on a separate new line — but the last entry comes without a trailing new-line character. If you want to pipe xmlstarlet’s output into “while read e; do ...; done
“, the last entry won’t get read. xmlstarlet has another option for this: “--nl
” (it means: “finish each printed match with a new line”). So if you write your command line like this: “xmlstarlet sel --template --value-of XPATH --nl
“, everything will be fine.
It took me a while to find out, that the last entry does not got processed, and then how to fix this.