tinyxml2
tinyxml2 copied to clipboard
TinyXML2 is a simple, small, efficient, C++ XML parser that can be easily integrated into other programs.
This changes the export definition to only happen when the tinyxml2 itself is built as a shared library. It fixes an issue where the tinyxml2 symbols are exported even when...
LinkEndChild is in the code: https://github.com/leethomason/tinyxml2/blob/34dd03ecc24602632589024e9ddd2865e38b84e3/tinyxml2.h#L845 but doesn't appear in the documentation: https://leethomason.github.io/tinyxml2/index.html
In Tinyxml creating a declaration was like : TiXmlDeclaration _xmlDecl = new TiXmlDeclaration("1.0", "UTF-8", ""); But in Tinyxml2 it requires to create a document first tinyxml2::XMLDeclaration_ decl = doc.NewDeclaration(); decl->SetValue("xml...
Hi, I have a construct like std::unique_ptr mRoot; So here is always a compile error with Visual Studio and GCC. I seems this is not a good idea to have...
The normal way to find a descendent is FirstChildElement()->FirstChildElement() But it lacks the null check, so I added the 2 functions to cover the null check. The last string of...
The depth recursion limit TINYXML2_MAX_ELEMENT_DEPTH = 100 is quite restrictive for some applications. We encountered it [here](https://github.com/deepmind/mujoco/issues/307), where it is limiting our users from forming simulated chains with more than...
1.在系统语言为繁体中文情况下异常,但在系统语言为简体中文情况正常 2.我的vs项目使用的UNIcode字符集 3.下面是我写的代码,但无论如何转字符编码(我有尝试过gb2312 utf8 ansi),变量str都无法正确解析字符串,均为乱码 tinyxml2::XMLDocument doc; XMLDeclaration* declaration = doc.NewDeclaration(); string text = "白白魂"; //ANSItoUTF8(text); XMLElement* pRoot = doc.NewElement("Root"); pRoot->SetText(text.c_str()); doc.InsertFirstChild(declaration); doc.InsertEndChild(pRoot); doc.SaveFile("C:\\Users\\Method-PC\\Desktop\\1.xml"); tinyxml2::XMLDocument loaddoc; loaddoc.LoadFile("C:\\Users\\Method-PC\\Desktop\\1.xml"); XMLElement *ele =...
Hi there, today I managed to produce a stupid error by copy&pasting. Here is the minimal code snipplet: `// ` `auto *pElement = xmlDoc.NewElement("foo");` `pElement->InsertEndChild( pElement );` /\\ |__ _this...
### What's happening: On Windows, and for specific versions of MSVC, the following code is used to open files: (see lines 2290-2297 in tinyxml2.cpp): ``` #if defined(_MSC_VER) && (_MSC_VER >=...
Hello, I am running the xmltest.cpp on visual studio code 2022. I got the error listed below. The compiler is g++ version 7.5.0. I tried to install older version on...