tldr/pages/common/xml.md

643 B

xml

XMLStarlet toolkit: Query / Edit / Check / Transform XML documents. Subcommands: edit, select, transform, validate, format, elements, canonic, list, escape, unescape, pyx, or p2x. More information: https://http://xmlstar.sourceforge.net/doc/xmlstarlet.pdf.

  • Execute a subcommand:

xml {{subcommand}} {{options}} {{xml-file-or-uri}}

  • Execute a subcommand, redirecting output to a file:

xml {{subcommand}} {{options}} {{xml-file-or-uri}} >{{path/to/output}}

  • Display help for a subcommand:

xml {{subcommand}} --help

  • Display general help:

xml --help

  • Display version:

xml --version