xml-canonic
Make XML documents canonical. tldr-pages
On several platforms
Several platforms
Make an XML document canonical, preserving comments
xml [c14n path/to/input.xml >path/to/output.xmlIdentifyMake an XML document canonical, removing comments
xml [c14n --without-comments path/to/input.xml >path/to/output.xmlIdentifyMake XML exclusively canonical, using an XPATH from a file, preserving comments
xml [c14n --exc-with-comments path/to/input.xml path/to/c14n.xpathIdentifyDisplay help
xml [c14n --helpIdentify