I've seen this syntax several places (eg, here):
xmllint --xpath '/plist/array/string/text()' tmp.xml
, used to query a particular XML node using an xpath selector. However, I'm getting the error Unknown option --xpath
when I try to execute this on my machine (mac os x snow leopard).
Looking more closely at the man page for xmllint, I don't see the --xpath
option documented...
Am I just totally missing something here?
--xpath
option (on my Linux box) but in my casexmllint
knows about this option:xmllint | grep xpath
return--xpath expr: evaluate the XPath expression, inply --noout
. Show to us output ofxmllint --version
command. Maybe this program should be compiled with/or without XPath support?.. – Henceforth