From: Saqib Ali <saqib.ali...@gmail.com> > I'm reading a large (57 MB) XML file Using XML::XPath::XMLParser() > > I keep getting this error: > > "Callback called exit at XML/XPath/Node/Element.pm at line 144 during > global destruction." > > I'm using Windows XP. So I watched the task-management memory meter > during the execution of this process. The PERL process chewed up a lot > of the "available memory". But when the process died, it still showed > about 216MB available memory. > > Is there anything I can do to work-around this problem? From reading > responses to other similar questions, the only option may be to use a > XML stream parser instead of one that builds the entire DOM tree > internally.
It might be best to switch to XML::Twig instead. It should be a simpler change than to go "stream based". XML::Twig allows you to read the file in chunks giving you the tree for part of the XML. Hard to say without knowing the XML and what you need to do with it. Jenda ===== je...@krynicky.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 -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/