tags:

views:

106

answers:

2

I have an xml file that is about 42k in size. Shouldn't tinyxml be able to parse a file of this size. Looking at the tinyxml source code, it appears to just read the entire file in as a char *.

When I reduce the xml file in size to 7k, tinyxml works just fine.

Is there a definitive limit to the # of bytes that tinyxml will parse?

+1  A: 

If you are using the operator >>, you might be running into the 8Kb hardcoded reservation made in tinyxml.cpp in the implementation of

std::istream& operator>> (std::istream & in, TiXmlNode & base)

(that information is relevant as of version 2.5.3)

sean e
+1  A: 

If there's a limit, it's a lot bigger than that -- I've used it successfully on files over 100 megabytes.

Jerry Coffin