[xml] Feature request : xmllint --xpath query on node in namespace
- From: John Brown <johnbrown105 hotmail com>
- To: xml gnome org
- Subject: [xml] Feature request : xmllint --xpath query on node in namespace
- Date: Sat, 1 Nov 2014 14:40:46 +0000 (UTC)
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]