--Code changes

-Pass XML_PARSE_HUGE to xmlReadMemory() to allow for reading large Xml files.
This commit is contained in:
mfeemster 2016-04-21 18:43:52 -07:00
parent cac7308776
commit 322c630b8f

View File

@ -320,7 +320,7 @@ public:
xmlPtr = CX(&buf[0]);
bufSize = strlen(xmlPtr);
//embers.reserve(bufSize / 2500);//The Xml text for an ember is around 2500 bytes, but can be much more. Pre-allocate to aovid unnecessary resizing.
doc = xmlReadMemory(xmlPtr, int(bufSize), filename, "ISO-8859-1", XML_PARSE_NONET);//Forbid network access during read.
doc = xmlReadMemory(xmlPtr, int(bufSize), filename, "ISO-8859-1", XML_PARSE_HUGE);
//t.Toc("xmlReadMemory");
if (doc == nullptr)