mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 06:42:10 +02:00

* pages*: use generic word for help * git: add newline to the end Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * pages*: make help and version commands comply with the style guide * java: fix Java name --------- Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
855 B
855 B
xml elements
Extract elements and display the structure of an XML document. More information: http://xmlstar.sourceforge.net/docs.php.
- Extract elements from an XML document (producing XPATH expressions):
xml elements {{path/to/input.xml|URI}} > {{path/to/elements.xpath}}
- Extract elements and their attributes from an XML document:
xml elements -a {{path/to/input.xml|URI}} > {{path/to/elements.xpath}}
- Extract elements and their attributes and values from an XML document:
xml elements -v {{path/to/input.xml|URI}} > {{path/to/elements.xpath}}
- Print sorted unique elements from an XML document to see its structure:
xml elements -u {{path/to/input.xml|URI}}
- Print sorted unique elements from an XML document up to a depth of 3:
xml elements -d{{3}} {{path/to/input.xml|URI}}
- Display help:
xml elements --help