Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • In my case two.xml was generated from one.xml by a script. So I just needed to check what was added/removed by the script.
    – GuruM
    Commented Aug 8, 2012 at 10:36
  • 2
    This was the option I needed. Supposedly the most canonical version can be obtained by combining --format with --exc-c14n; will probably be still slower to process :( Commented Nov 27, 2014 at 14:05
  • It's been quite some time since I wrote the answer, but I faintly remember using the --exc-c14n flag. However, diff-ing the output with/without the flag showed no differences so just stopped using it. Dropping unnecessary/unused flags might make the process faster.
    – GuruM
    Commented Dec 21, 2014 at 6:49
  • 7
    The --exc-c14n option specifies sorting of the attributes. In your specific files the attributes probably were already sorted, but the general advice would be to use the combination --format --exc-c14n. Commented Dec 22, 2014 at 14:33