Hi
I’ve been using the ofxXmlSettings in my work, along with Shotgunninja’s attribute changes. This setup makes xml reading very straightforward, so thanks to all those involved.
I did however notice a few small bugs and extensive use of temp string copying and dynamic memory allocations, which would result in inefficiency and memory fragmentation. Also, as tinyxml supports std::string, there was a bit of needless conversion from char* to string and vice versa. The new code fixes some problems I was seeing, which were (I think) related to memory fragmentation. The changes fix those problems.
I’ve uploaded a modified version, building on shotgunninja’s changes which is a drop in replacement for the ofxXmlSettings files. I also modified ofToDataPath to have a const string& argument. The archive can be found here.
This has been tested with my own code and with the addon example, but that’s not to say it’s been exhaustively tested. Let me know how you get on, or if you have any questions.
(…didn’t realise you could attach files to these messages. I’ve attached my changes to this message in addition to the link above.)
Thanks,
g