xml-elements
Extract elements and display the structure of an XML document. tldr-pages
On several platforms
Several platforms
Extract elements from an XML document (producing XPATH expressions)
xml [el path/to/input.xml >path/to/elements.xpathIdentifyExtract elements and their attributes from an XML document
xml [el -a path/to/input.xml >path/to/elements.xpathIdentifyExtract elements and their attributes and values from an XML document
xml [el -v path/to/input.xml >path/to/elements.xpathIdentifyPrint sorted unique elements from an XML document to see its structure
xml [el -u path/to/input.xmlIdentifyPrint sorted unique elements from an XML document up to a depth of 3
xml [el -d3 path/to/input.xmlIdentifyDisplay help
xml [el --helpIdentify