C + + XML parser

Source: Internet
Author: User
Tags xml parser

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:

    1. Simple-to-use with similar APIs.
    2. DOM based parser.
    3. UTF-8 Unicode Support. Http://en.wikipedia.org/wiki/UTF-8

Advantages of TinyXML-2

    1. The focus of all future dev.
    2. Many fewer memory allocation (1/10th to 1/100th), uses less memory (about 40% of TinyXML-1), and faster (~5x on read).
    3. No STL requirement.
    4. More modern C + +, including a proper namespace.
    5. Proper and useful handling of whitespace

Advantages of TinyXML-1

    1. Can report the location of parsing errors.
    2. Support for some C + + STL Conventions:streams and strings
    3. Very mature and well debugged code base.

4, I determined to choose the TINYXML2

C + + XML parser

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.