ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
Re: parsing a huge xml document
by Jenda Krynicky other posts by this author
Sep 10 2009 4:22AM messages near this date
view in the new Beta List Site
parsing a huge xml document | Re: parsing a huge xml document
& XSLT From: subs subs <subscrip9@[...].com> 
>  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

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?

Maybe if you tell us what do you want to do with the data we can give 
a more detailed advice.

Anyway, Mirod already advertised his XML::Twig, so I'll likewise 
advertise mine XML::Rules. If you need to skip parts of the XML, 
tweak the structure generated from other parts and handle (whatever 
that means) the parts as soon as they are parsed, XML::Rules can 
help.

There's a few examples in the example directory in the distribution 
and a few more on Perlmonks.org

Jenda
===== Jenda@[...].cz === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
	-- Terry Pratchett in Sourcery

_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Subs Subs
Jenda Krynicky
Subs Subs
Jenda Krynicky
Liam Quin
Michael Ludwig
Kip Hampton
Liam Quin
Petr Cimprich
Petr Pajas
Vaclav Barta
Mirod
Mirod
Liam Quin
Jennifer Amon

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved