$parser->keep_blanks(0); [download]
In reply to Re: XML::LibXML - Removing text nodes by Mutant in thread XML::LibXML - Removing text nodes by loris