For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > July 2007 > Re: Parsing large XML file - Revisited









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Parsing large XML file - Revisited
Srikanth

2007-07-26, 3:59 am

On Jul 25, 9:11 pm, mick...@frontiernet.net (Mike Blezien) wrote:
> Rob,
>
> ----- Original Message -----
> From: "Rob Dixon" <rob.di...@350.com>
> To: <beginn...@perl.org>
> Cc: "Mike Blezien" <mick...@frontiernet.net>
> Sent: Wednesday, July 25, 2007 10:57 AM
> Subject: Re: Parsing large XML file - Revisited
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Obviously there are several approaches to accomplish this task. With the help of
> yourself and others who posted, I have been able to put together a fairly
> efficient script, as we need to process & parse approx., 5000+ XML files
> averaging 9-1000KB's in size. So far it has been working smoothly :)
>
> Mike



Hi,
My requirement is to compare two xml(large[50MB] each) files and
generate an xml file with differences(xmldelta). But here the problem
is the modules(XML::Diff) which I installed are taking lot of
memory(even 2 GB RAM is not sufficient) and time. I am thinking that
those modules are using XML::Parser which in turn uses DOM Parser so
that taking lot of memory.
Is there any way in perl which will do that using SAX Parser? or which
will take less memory?
Please help in this regard.

Thanks in advance.

Regards,
L.Srikanth Kumar


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com