Hello All,

I found the answer to my problem at
http://stackoverflow.com/questions/8264134/xmllint-failing-to-properly-query-with-xpath
but it is cumbersome. If I want to query /book/chapter/title I have to write:

$ xmllint --xpath
"/*[local-name()='book']/*[local-name()='chapter']/*[local-name()='title']"
book.xml if book.xml is like
<book xmlns= ...></book>

It would be good if there were a syntax for declaring the namespace on the
command line.

Regards,
John Brown.

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
https://mail.gnome.org/mailman/listinfo/xml

Reply via email to