xmlformat is a configurable formatter (or pretty-printer) for XML documents. It provides control over indentation, line-breaking, and text wrapping. These properties can be defined on a per-element basis. There is a perl and a ruby variant of this program available.

WWW: http://www.kitebird.com/software/xmlformat/
