in reply to Re: XML::LibXML - Removing text nodes
in thread XML::LibXML - Removing text nodes

Or, when I have finished twiddling,

xmllint --format ugly.xml > pretty.xml

But it goes a bit against the grain ...

loris