process XML data before pretty-printing to trim whitespace
replace XML processor with ElementTree with custom indentation
Merge pull request #172 from unsignedint/master

process XML data before pretty-printing to trim whitespace