in reply to Removing whitespace from deleted items in XML::LibXML
The node is not replaced by a blank line. The end of line was there even in the original data: it is the end of the line containing the element to be removed. If you want to remove it, too, just remove the corresponding text node.