Skip to content

Instantly share code, notes, and snippets.

@carstengehling
Created February 1, 2013 20:12
Show Gist options
  • Save carstengehling/4693784 to your computer and use it in GitHub Desktop.
Save carstengehling/4693784 to your computer and use it in GitHub Desktop.
Using xmllint to make XML files ready for diff'ing
#!/bin/sh
FILE1=/tmp/`basename $1`
FILE2=/tmp/`basename $2`
xmllint --c14n $1 > $FILE1
xmllint --c14n $2 > $FILE2
diff $FILE1 $FILE2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment