1, TinyXML's official website
http://www.grinninglizard.com/tinyxml/
2. There are 2 versions of TinyXML: TinyXML and TINYXML2
3. The advantages and disadvantages of these 2 versions are as follows:
TinyXML-1 or TinyXML-2?
Both parsers:
- Simple-to-use with similar APIs.
- DOM based parser.
- UTF-8 Unicode Support. Http://en.wikipedia.org/wiki/UTF-8
Advantages of TinyXML-2
- The focus of all future dev.
- Many fewer memory allocation (1/10th to 1/100th), uses less memory (about 40% of TinyXML-1), and faster (~5x on read).
- No STL requirement.
- More modern C + +, including a proper namespace.
- Proper and useful handling of whitespace
Advantages of TinyXML-1
- Can report the location of parsing errors.
- Support for some C + + STL Conventions:streams and strings
- Very mature and well debugged code base.
4, I determined to choose the TINYXML2
C + + XML parser