Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Re: XML::Parser breaks on

by clintp (Curate)
on Aug 16, 2001 at 17:31 UTC ( #105358=note: print w/replies, xml ) Need Help??

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.


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://105358]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (None)
    As of 2021-10-16 05:36 GMT
    Find Nodes?
      Voting Booth?
      My first memorable Perl project was:

      Results (69 votes). Check out past polls.