Skip to content

Instantly share code, notes, and snippets.

@hfs
Created January 13, 2014 08:55
Show Gist options
  • Save hfs/8396806 to your computer and use it in GitHub Desktop.
Save hfs/8396806 to your computer and use it in GitHub Desktop.
Canonicalize XML with xmlstarlet to make two XML files comparable
#!/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