CmdID

CmdID / Commands

xml-elements

Extract elements and display the structure of an XML document. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Extract elements from an XML document (producing XPATH expressions)

xml [el path/to/input.xml >path/to/elements.xpathIdentify

Extract elements and their attributes from an XML document

xml [el -a path/to/input.xml >path/to/elements.xpathIdentify

Extract elements and their attributes and values from an XML document

xml [el -v path/to/input.xml >path/to/elements.xpathIdentify

Print sorted unique elements from an XML document to see its structure

xml [el -u path/to/input.xmlIdentify

Print sorted unique elements from an XML document up to a depth of 3

xml [el -d3 path/to/input.xmlIdentify

Display help

xml [el --helpIdentify