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

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.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

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