xml
XMLStarlet Toolkit: query, edit, check, convert, and transform XML documents. Some subcommands such as `validate` have their own usage documentation.
More info →Subcommands (15)
This command is an alias of `xml canonic`.
Make XML documents canonical.
Convert a PYX (ESIS - ISO 8879) document to XML format.
Edit an XML document.
Extract elements and display the structure of an XML document.
Escape special XML characters, e.g. `<a1>` → `<a1>`.
Format an XML document.
List a directory's contents (like `ls`) in XML format.
This command is an alias of `xml depyx`.
Convert an XML document to PYX (ESIS - ISO 8879) format.
Select from XML documents using XPATHs. Tip: use `xml elements` to display the XPATHs of an XML document.
Transform XML documents using XSLT.
Unescape special XML characters, e.g. `<a1>` → `<a1>`.
Validate XML documents.
This command is an alias of `xml pyx`.
Examples (6)
Display general help, including the list of subcommands
xml --helpExecute a subcommand with input from a file or URI, printing to `stdout`
xml subcommand options path/to/input.xml|URIExecute a subcommand using `stdin` and `stdout`
xml subcommand optionsExecute a subcommand with input from a file or URI and output to a file
xml subcommand options path/to/input.xml|URI > path/to/outputDisplay help for a specific subcommand
xml subcommand --helpDisplay version
xml --version