tinyxml2
tinyxml2 copied to clipboard
TinyXML2 is a simple, small, efficient, C++ XML parser that can be easily integrated into other programs.
Would it be possible to add a new method to XMLNode which returns the last line number? This would complement the existing GetLineNum method which returns the first line number....
Hi, I'm moving an older tinyxml wrapper library to tinyxml2. I've started to adopt the deepclone method on the tinyxml2::Node structure to duplicate nodes. In doing so I expected that...
I'm adding namespace support to TinyXML2. The way I'm planning to do it is this: you have three new user-exposed functions, XMLDocument::RegisterNamespace() and XMLElemement::Prefix() and XMLElement::LocalName(). By registering a namespace,...
If an attribute contains a numeric value with spaces like "1 2" and you use the parse to double you get the value `1`. I would expect this to return...
I found out though xml node has such invalid name with backslash and star character, tinyxml2 can write and open xml file like below. ```xml 50% off Default ON OFF...
```C++ #include #include #include int main(){ // normal case { tinyxml2::XMLDocument doc; doc.Parse("ABC"); auto a = doc.FirstChildElement(); assert(a->GetText() == std::string("ABC")); // ok } // comment prevent GetText() { tinyxml2::XMLDocument doc;...
Not sure if it's a bug or feature. Yet it can then be a little bit tricky when you really need to work with the exact text within an element....
Maybe telling about the namespace `tinyxml2` in `README` will be more beginner-friendly. When I first used tinyxml2, I typed `XMLDocument doc;` and it could not be compiled. It took me...
Hi, I get an exception is thrown in the destructor of XMLPrinter after printing a document to string. Here is an example code: ``` tinyxml2::XMLPrinter printer; { tinyxml2::XMLDocument doc{}; for...
I need a visitor, which allows me to transform some DOM element from one type to another (changing its `Name`). However the TinyXML2 `Visitor` provides only `const` element access. Is...