CmdID

CmdID / Commands

xml-format

Format 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

Format an XML document, indenting with tabs

xml [fo --indent-tab path/to/input.xml >path/to/output.xmlIdentify

Format an HTML document, indenting with 4 spaces

xml [fo --html --indent-spaces 4 path/to/input.html >path/to/output.htmlIdentify

Recover parsable parts of a malformed XML document, without indenting

xml [fo --recover --noindent path/to/malformed.xml >path/to/recovered.xmlIdentify

Format an XML document from stdin, removing the DOCTYPE declaration

cat path/to/input.xml | xml [fo --dropdtd >path/to/output.xmlIdentify

Format an XML document, omitting the XML declaration

xml [fo --omit-decl path/to/input.xml >path/to/output.xmlIdentify

Display help

xml [fo --helpIdentify