getting the output of string() in the xmllint shell
Gökçe Aydos <[email protected]> Fri, 20 Dec 2019 12:46:23 +0100
| Newsgroups | gmane.comp.gnome.lib.xml.general |
|---|---|
| Message-ID | <[email protected]> |
I use xmllint in my command-line scripts. The default mode of xmllint does not support namespaces, so when I must deal with XML files with namespaces I use the --shell mode of xmllint. I noticed that the xpath command in the shell behaves differently than the *xmllint --xpath* on the command line. For example if I want to extract only the string portion of an attribute I use: xmllint --xpath "string(//node)" When I want to do the same in the shell, I must use the *xpath* command, because the *cat* command only supports node addresses. xpath "string(//node)" Unfortunately the xpath command gives an output like: Object is a string : http://purl.obolibrary.org/obo/DOID_8545... Is it possible to get a clean output with xmllint without using other tools? Gökçe _______________________________________________ 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