in reply to compacting XML?
Uh huh, and with either package the approach is the same: let some XML-knowledgeable parser hand you the elements one after another in printable form, then output those elements in printable form (as the aforesaid XML-knowledgeable parser has conveniently handed them to you ...) with nothing in-between them. Instead of monkeying around with regular expressions that attempt to treat the XML as a text-string, you delegate the entire XML-parsing task to, as it were, “someone who knows.™” Works.++