Re: getting the output of string() in the xmllint shell

Gökçe Aydos <[email protected]> Mon, 23 Dec 2019 12:13:11 +0100
Newsgroups gmane.comp.gnome.lib.xml.general
Message-ID <[email protected]>
On 2019-12-21 22:17, Liam R. E. Quin wrote> ...
> It would be worth adding,
>  --xmlns:a=" [uri here] "
> to xmllint.

That would be a good solution. Another solution could be to have the
*setrootns* from the shell available as an option.

> In the meantine you can use, e.g.
>     //*[local-name() = 'n' and namespace-uri() =
> 'http:/....'\/@*[local-name() = 'a' and namespace-uri() = '....']

Using local-name() co. make the xpath expression unreadable. But, I did
not know of namespace-uri(), thank you Liam.

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
https://mail.gnome.org/mailman/listinfo/xml
smime.p7s (application/pkcs7-signature, 5.3 KB) - not displayed