Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个大小约为 42k 的 xml 文件。tinyxml 不应该能够解析这种大小的文件。查看 tinyxml 源代码,它似乎只是将整个文件作为 char * 读取。
当我将 xml 文件的大小减小到 7k 时,tinyxml 工作得很好。
tinyxml 将解析的字节数是否有明确限制?
如果有限制,它会比这大得多——我已经成功地在超过 100 兆字节的文件上使用了它。
如果您使用运算符 >>,您可能会遇到在 tinyxml.cpp 中执行的 8Kb 硬编码预留
std::istream& operator>> (std::istream & in, TiXmlNode & base)
(该信息与 2.5.3 版相关)