Xmlpp
From Apache OpenOffice Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
The XML pretty printer (xmlpp) is a Perl utility to process XML streams and reformat them to your needs, e.g. split the 2 long lines of a document's content.xml into separated lines, one line for each element, for easier analyzing.
Download it from DecisionSoft, there's also a xmldiff utility.