tinyxml2
tinyxml2 copied to clipboard
TinyXML2 is a simple, small, efficient, C++ XML parser that can be easily integrated into other programs.
Hi there, During fuzz testing of the [sdformat](https://github.com/ignitionrobotics/sdformat) binary there were a couple crashes discovered and at least one of them seems to be a crash in tinyxml2. Although these...
The source code like: ``` XMLError XMLDocument::LoadFile( FILE* fp ) { Clear(); // .... .... Parse(); // so why don't check error here return _errorID; } ``` but in another...
At the first, here is simple code example: ``` XMLDocument doc; doc.Parse(""); XMLElement *child = doc.FirstChildElement()->FirstChildElement(); cout DoubleAttribute("attr") Attribute("attr")
I've tried to use tinyxml2 to parse some simple (but unfortunately with a recursive structure) xmls, but some of them fails to parse with something like this: ``` Error=XML_ELEMENT_DEPTH_EXCEEDED ErrorID=18...
it's my content of xml: `` when i use tinyxml2 to parse xml, it parse height attribute value: `"0.0000000000000000e+0\" weight"`
I think it would be good to also provide some examples showing [in docs](https://tinyxml2.docsforge.com/) how to create XML files, not only how to read these files. I think examples similar...
The XMLNode::DeepClone member function does an unbounded recursion. Even though XMLNode::ParseDeep enforces a limit on the recursion using the XMLDocument::DepthTracker: ``` XMLDocument::DepthTracker tracker(_document); if (_document->Error()) return 0; ``` this limit...
```C++ #include "tinyxml2.h" #include using namespace tinyxml2; using namespace std; int example_3() { static const char* xml = " A Midsummer Night's Dream "; XMLDocument doc; doc.Parse( xml ); XMLElement*...
I have a document with comments inside it. It fails to parse the document and it stops once it hits a XML comment. How to fix this? @leethomason
Test XML: ``` ``` Can be validated. (https://codebeautify.org/xmlvalidator) Test code: ``` #include #include "tinyxml2.h" int main() { tinyxml2::XMLDocument doc; tinyxml2::XMLError error = doc.Parse("\n" "" "" "" "" ""); // valid...