mirror of
				https://bitbucket.org/mfeemster/fractorium.git
				synced 2025-11-04 02:00:31 -05:00 
			
		
		
		
	--Code changes
-Pass XML_PARSE_HUGE to xmlReadMemory() to allow for reading large Xml files.
This commit is contained in:
		@ -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)
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user