| 1 |
XMLStarlet Toolkit: XML canonicalization |
| 2 |
Usage: PROG c14n [--net] <mode> <xml-file> [<xpath-file>] [<inclusive-ns-list>] |
| 3 |
where |
| 4 |
<xml-file> - input XML document file name (stdin is used if '-') |
| 5 |
<xpath-file> - XML file containing XPath expression for |
| 6 |
c14n XML canonicalization |
| 7 |
Example: |
| 8 |
<?xml version="1.0"?> |
| 9 |
<XPath xmlns:n0="http://a.example.com" xmlns:n1="http://b.example"> |
| 10 |
(//. | //@* | //namespace::*)[ancestor-or-self::n1:elem1] |
| 11 |
</XPath> |
| 12 |
|
| 13 |
<inclusive-ns-list> - the list of inclusive namespace prefixes |
| 14 |
(only for exclusive canonicalization) |
| 15 |
Example: 'n1 n2' |
| 16 |
|
| 17 |
<mode> is one of following: |
| 18 |
--with-comments XML file canonicalization w comments (default) |
| 19 |
--without-comments XML file canonicalization w/o comments |
| 20 |
--exc-with-comments Exclusive XML file canonicalization w comments |
| 21 |
--exc-without-comments Exclusive XML file canonicalization w/o comments |
| 22 |
|