commands.sh

xml canonic

all

Make XML documents canonical.

More info →

Options (1)

boolean

Make an XML document canonical, preserving comments

Example: xml {{[c14n|canonic]}} {{path/to/input.xml|URI}} > {{path/to/output.xml}}

Examples (4)

Make an XML document canonical, preserving comments

xml [c14n|canonic] path/to/input.xml|URI > path/to/output.xml

Make an XML document canonical, removing comments

xml [c14n|canonic] --without-comments path/to/input.xml|URI > path/to/output.xml

Make XML exclusively canonical, using an XPATH from a file, preserving comments

xml [c14n|canonic] --exc-with-comments path/to/input.xml|URI path/to/c14n.xpath

Display help

xml [c14n|canonic] --help
made by @shridhargupta | data from tldr-pages