http://qs1969.pair.com?node_id=265277


in reply to Re: Help Using XML::Parser module
in thread Help Using XML::Parser module

I've used XML::Parser for several projects (I started before reading the tutorials that said it was too hard), and once you get used to the event driven model, it's not really difficult at all - especially if you control the XML format, too. Example: All info in attributes can really make life easy.

--Bob Niederman, http://bob-n.com

Replies are listed 'Best First'.
Re: Re: Re: Help Using XML::Parser module
by mirod (Canon) on Jun 12, 2003 at 12:50 UTC

    The problem with XML::Parser is not so much that it is hard to use, although it is quite convoluted in places. The problem is that SAX is a standard alternative to its streaming mode, and that XML::LibXML is a way better alternative to its tree mode. Plus XML::Parser is not actively maintained at the moment, which is always a problem when a new version of Perl, or of expat (the underlying library) comes out.

    So if you need to work in stream mode, your time will be better spent learning SAX, and if you are looking for convenience then XML::Simple, XML::LibXML or XML::Twig (or any of a number of other modules) are certainly better choices.