http://www.perlmonks.org?node_id=105358


in reply to Re: XML::Parser breaks on
in thread XML::Parser breaks on

I've used something like this before, and like the general technique, but I question:
$val{$el}.=$txt if $txt =~ /\S/;
Since the parser is actually allowed to break anywhere you could lose intra-word spaces or newlines (if they're signicficant).