in reply to XML::LibXML unbindNode leaves blank lines in the xml file

xml perspective this doesn't change the structure, but it looks bad. Am I doing something wrong...

You're thinking the wrong way :) the whitespace is data (not structure ) ... also if you don't look at it , it won't look bad :P

Or is there an easy way to avoid it?

XML::LibXML::PrettyPrint

  • Comment on Re: XML::LibXML unbindNode leaves blank lines in the xml file