Re: Which pptimized XML parser can be used with Perl?
[email protected] (kmx)
| Newsgroups | perl.win32.vanilla |
|---|---|
| Message-ID | <[email protected]> |
Dne 25.5.2010 8:11, Sharma, Sushil napsal(a): > > Hi All, > > I am using XML::Simple in one of my project assignment with Perl 5.8.1r5. > I am observing that this XML utility is taking a lot of memory when we have a large input file for parsing. > Because of this reason when multiple clients are invoking this Perl script, system memory is becoming an issue. > > I wanted to know if there is any other flavor of XML parser available with Perl which uses less memory. > > Thanks & Regards, > Sushil Sharma > As for the "more robust" XML parser check the following: 1/ XML::LibXML::Parser (based on libxml2 library - http://www.xmlsoft.org/) 2/ XML::Parser (based on expat library http://expat.sourceforge.net/) Depending on what exactly you want to achieve you might find some even more suitable modules on CPAN (e.g XML::Rules build on top of XML::Parser + many others). -- kmx