Tag: xml
A. Use xmllint in shell mode and declare the namespace with a prefix. You can then use that prefix in your XPath. B. Use local-name() to match element names. xmllint --xpath /*[local-name()='chat']