[xml] Feature request : xmllint --xpath query on node in namespace



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.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]