in reply to XML::LibXML - Removing text nodes

s/\n{2,}/\n/g;

Don't use the API, work around it ;-)

kludgemeister

Replies are listed 'Best First'.
Re^2: XML::LibXML - Removing text nodes
by loris (Hermit) on Nov 10, 2004 at 11:28 UTC

    Or, when I have finished twiddling,

    xmllint --format ugly.xml > pretty.xml

    But it goes a bit against the grain ...

    loris