Re: XML to inMemory Hash

2007-08-04 Thread Prabu Ayyappan
Hi, Yes its saving the memory. But now am into a new problem :( Its taking lot of time to parse a file. Is there any way to create chunks so that it wont parse the entire file. my requirement is to read the chunks based on an attribute. I tried my $twig =

Re: XML to inMemory Hash

2007-08-04 Thread Prabu Ayyappan
Yes its saving the memory. But now am into a new problem :( Its taking lot of time to parse a file. Is there any way to create chunks so that it wont parse the entire file. my requirement is to read the chunks based on an attribute. I tried my $twig = XML::Twig-

Re: XML to inMemory Hash

2007-08-04 Thread Jenda Krynicky
From: Prabu Ayyappan <[EMAIL PROTECTED]> > Thanks for the valuable inputs, > > I am planning to solve my memory issue by making the XML into Chunks > using Xml::Twig and using simplify( ) in XML::Twig to convert that > chunks back into the Hash data structure. > > Is that advicable method to p

Re: XML to inMemory Hash

2007-08-03 Thread Prabu Ayyappan
Hi All, Thanks for the valuable inputs, I am planning to solve my memory issue by making the XML into Chunks using Xml::Twig and using simplify( ) in XML::Twig to convert that chunks back into the Hash data structure. Is that advicable method to proceed to reduce my Memory size.So that after

Re: XML to inMemory Hash

2007-08-02 Thread Jenda Krynicky
From: Rob Dixon <[EMAIL PROTECTED]> > Prabu Ayyappan wrote: > > > > I want to convert a huge XML file into an inMemory Hash. > > > > I tried using XML::Simple. But its taking huge memory space and time to > > convert it into Hash. > > > > While loading a XML file of 300MB its taking mo

Re: XML to inMemory Hash

2007-08-01 Thread Rob Dixon
Prabu Ayyappan wrote: I want to convert a huge XML file into an inMemory Hash. I tried using XML::Simple. But its taking huge memory space and time to convert it into Hash. While loading a XML file of 300MB its taking more memory space and time. Is there any better method to load t

Re: XML to inMemory Hash

2007-08-01 Thread yaron
Hi, Did you try to use XML::TrePP. It seems to fit your needs. http://search.cpan.org/~kawasaki/XML-TreePP-0.22/lib/XML/TreePP.pm Yaron Kahanovitch - Original Message - From: "Prabu Ayyappan" <[EMAIL PROTECTED]> To: "perl Beginner" Sent: Wednesday, August 1, 2007 9:51:49 AM (GMT+0200)