Options (1)
booleanExtract elements from an XML document (producing XPATH expressions)
Example:
xml {{[el|elements]}} {{path/to/input.xml|URI}} > {{path/to/elements.xpath}}Examples (6)
Extract elements from an XML document (producing XPATH expressions)
xml [el|elements] path/to/input.xml|URI > path/to/elements.xpathExtract elements and their attributes from an XML document
xml [el|elements] -a path/to/input.xml|URI > path/to/elements.xpathExtract elements and their attributes and values from an XML document
xml [el|elements] -v path/to/input.xml|URI > path/to/elements.xpathPrint sorted unique elements from an XML document to see its structure
xml [el|elements] -u path/to/input.xml|URIPrint sorted unique elements from an XML document up to a depth of 3
xml [el|elements] -d3 path/to/input.xml|URIDisplay help
xml [el|elements] --helpmade by @shridhargupta | data from tldr-pages