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).

Replies are listed 'Best First'.
Re: Re: Re: XML::Parser breaks on
by blakem (Monsignor) on Aug 17, 2001 at 02:10 UTC
    You're probably right and its a piece of code I haven't looked at in a long time. I do remember there being a reson for it, but can't remember it right now. Anyone looking at using this, should probably get rid of the if conditional.

    -Blake