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.
xmlformat provides improved diagnostic information when a document is not well-formed. (prints line and token number, and stack trace).
this is the perl implementation