4 ms·
To avoid the hassle of handling xml namespaces (e.g. in an Atom feed...), just do: xmllint --xpath '//*[local-name()="element"]/@attribute' Note: for cons
by hyperpallium 9y ago
To avoid the hassle of handling xml namespaces (e.g. in an Atom feed...), just do:
xmllint --xpath '//*[local-name()="element"]/@attribute'
Note: for consistency, namespaces are not needed for attribute names.
http://stackoverflow.com/questions/4402310/how-to-ignore-namespace-when-selecting-xml-nodes-with-xpath http://stackoverflow.com/questions/4402310/how-to-ignore-nam...