Re: parsing a huge xml document

mirod <[email protected]>
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
subs subs wrote:

> Iam new to perl-xml parsing. I need to parse a huge xml document (about 
> 4gb) Can anybody suggest which perl module will be efficient in terms of 
> memory and speed

It depends what you need to do.

The simplest option is probably to use XML::Twig (full disclosure: I am slightly 
biased ;--) An other option, which would probably lead to better speed (but I 
suspect at the expense of a steeper learning curve) would be to use 
XML::LibXML's pull mode.

I would advise against using SAX, which is harder to code and, last time I 
checked, was extremely slow.

-- 
mirod
_______________________________________________
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.