in reply to Re: XML::Simple noisy option?
in thread XML::Simple noisy option?

XML::Simple is not a SAX parser. It is a module that lets you load XML data into a Perl structure. It works on top of a parser, which can be XML::Parser or, since versions 1.08_01, any SAX parser. So by (good) design it slurps a whole XML file into memory.

Not only did you not read the code, it looks like you did not read the documentation either ;--)

Replies are listed 'Best First'.
Re: Re: Re: XML::Simple noisy option?
by pg (Canon) on Jan 30, 2003 at 04:49 UTC

    "So by (good) design it slurps a whole XML file into memory."

    Okay, now I traced each line of the source code. I think we are lucky that the XML::Simple module didn't follow your good design and slurp the file.

    Slurping a whole file, in order to use a SAX::Parser? Good he/she didn't do it.

    To be frank with you, the point is really not whether XML::Simple slurp the whole file or not, that's not something you or me can change, it was just done in that way, but it is a very poor judgement to praise "slurp a whole file" as a good design in this context.