C++: Trouble loading long string from XML file using Mini-XML

﹥>﹥吖頭↗ 提交于 2019-12-06 15:44:47

You need to replace: tree = mxmlLoadFile(NULL, fp, MXML_TEXT_CALLBACK);

By:

tree = mxmlLoadFile(NULL, fp, MXML_OPAQUE_CALLBACK);

Is that what you tried?

I think you also need to read value like

tmp_str = temp_sub_node->child->value.opaque;

If you are using C++ then for string handling "string" STL class can be used. It can load any number of characters up to the memory limit.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!