Re: parsing a huge xml document
Liam Quin <[email protected]>
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Sep 11, 2009 at 11:47:47AM +0800, subs subs wrote: > >Depends on what do you mean by "parse". I mean, sure you want to > >extract the tags and their attributes and contents, but what then? > > I have to extract the tags and attributes and insert the values into > database tables. Any ideas what would be the memory requirements for 4GB xml > doc if I use XML::twig. I would also like to know the memory requirements > for XML::SAX You'd have to measure for your data probably. Also, if the XML is simple & machine-generated, it's deliberate in the design of XML that you can use regular expressions for simple parsing, and sometimes that's just fine. Liam -- Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/ http://www.holoweb.net/~liam/ * http://www.fromoldbooks.org/ _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs