Re: parsing a huge xml document

Petr Cimprich <[email protected]>
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
Liam Quin wrote:
>
> Interesting!
>
> Others have mentioned that SAX is slow (although I think one of
> SAX readers is based on libxml and shouldbe quite fast), 

In fact, one parsers based on Expat is any faster (ExpatXS).

> and
> that the documentatoin is needlessly difficult and obscure, which
> I'd 100% agree with.  

Here is the Perl SAX docs:
http://perl-xml.sourceforge.net/perl-sax/sax-2.1-ref.html

If you can refer to the most needlessly difficult and obscure parts I'm
happy to change them :)

When memory is not a constrain the DOM or even XSLT is faster than Perl
SAX (C vs. Perl land). If the memory matters and the processing is
fairly simple Perl SAX can be the right tool.

Petr
_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.