Skip Menu |

This queue is for tickets about the XML-Simple CPAN distribution.

Report information
The Basics
Id: 124627
Status: rejected
Priority: 0/
Queue: XML-Simple

People
Owner: Nobody in particular
Requestors: xingjingi21 [...] 163.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: meet an issue when using XML::LibXML
Date: Thu, 1 Mar 2018 23:35:22 +0800 (CST)
To: bug-XML-Simple [...] rt.cpan.org
From: 周星静 <xingjingi21 [...] 163.com>
Hi Administrator, My perl version is perl 5, version 24, and I run this on Windows 7. I meet a problem that when using XMLin(), when the xml file is small, the script works, but when the xml file became larger, the script just hanging at XMLin, I wait a about 24 hours but still hanging. Is there any limit to the size of XML file? Thanks very much for your help. BR//Star
There is no known problem with parsing large files, although both modules you mention will try to build a structure in memory to represent the whole file. The amount of memory used will be significantly larger than the number of bytes in the XML file. XML::SAX and XML::Twig are modules that allow you to work with files larger than the amount of memory on your system. This is not an appropriate place to ask for assistance with debugging your scripts. I'd suggest that Stackoverflow.com might bring you more luck. However when you post there you will need to be clear about whether you are using XML::Simple or XML::LibXML - these are two different modules. You will also need to provide some code and sample data and details of how many megabytes the large file your trying to parse is. If you are using XML::Simple then I would suggest that you switch to XML::LibXML instead. Here's a link to a tutorial with example code: http://grantm.github.io/perl-libxml-by-example/ Regards Grant