Created
January 13, 2014 08:55
-
-
Save hfs/8396806 to your computer and use it in GitHub Desktop.
Canonicalize XML with xmlstarlet to make two XML files comparable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
xml c14n --without-comments $1 | xml format --dropdtd --encode utf-8 --indent-spaces 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment