Shell command line tools for handling xml files see https://stackoverflow.com/a/91801/1497139 for other options
# linux
sudo apt-get install libxml2-utils
# macports Mac OS/X
sudo port install libxml2
xmllint
# macports / OSX
sudo port install xml-coreutils