in reply to XML::Simple noisy option?
You might want to consider using the SAX events that XML::Simple (and many other XML parsers) can generate.
Rather than process the entire XML document in memory, the parser will generate events (for example the start or end of an element) which can then be used to trigger a handler, which can:
Cheers.
BazB
Update: Added a few suggestions of what SAX events could be used to trigger.
Update 2: mirod++. I've not been able to confirm XML::Simple's behaviour regarding having to slurp the whole file before producing SAX events, but I'll bow to mirod's superior knowledge in this area :-) mirod's idea of using a SAX filter is cunning.
If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
That way everyone learns.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: XML::Simple noisy option?
by mirod (Canon) on Jan 30, 2003 at 00:34 UTC |