2021-08-16 13:23:55 +01:00
|
|
|
# xml canonic
|
2021-08-14 23:17:52 +01:00
|
|
|
|
2021-08-15 19:38:24 +01:00
|
|
|
> Make XML documents canonical.
|
2021-08-15 12:19:09 +01:00
|
|
|
> More information: <http://xmlstar.sourceforge.net/docs.php>.
|
2021-08-14 23:17:52 +01:00
|
|
|
|
2021-08-16 13:23:55 +01:00
|
|
|
- Make an XML document canonical, preserving comments (default behavior):
|
2021-08-15 19:38:24 +01:00
|
|
|
|
|
|
|
`xml canonic --with-comments {{path/to/input.xml|URI}} >{{path/to/output.xml}}`
|
|
|
|
|
2021-08-16 13:23:55 +01:00
|
|
|
- Make an XML document canonical, removing comments:
|
2021-08-15 19:38:24 +01:00
|
|
|
|
|
|
|
`xml canonic --without-comments {{path/to/input.xml|URI}} >{{path/to/output.xml}}`
|
|
|
|
|
2021-08-16 13:23:55 +01:00
|
|
|
- Exclusive XML canonicalization, using an XPATH from a file, preserving comments:
|
2021-08-15 19:38:24 +01:00
|
|
|
|
|
|
|
`xml canonic --exc-with-comments {{path/to/input.xml|URI}} {{path/to/c14n.xpath}}`
|
|
|
|
|
2021-08-16 13:23:55 +01:00
|
|
|
- Display help for the `canonic` subcommand:
|
2021-08-14 23:17:52 +01:00
|
|
|
|
|
|
|
`xml canonic --help`
|