码迷,mamicode.com
首页 > 编程语言 > 详细

c++ xml 解析器

时间:2017-01-19 16:59:46      阅读:208      评论:0      收藏:0      [点我收藏+]

标签:support   base   ror   hit   dom   nic   streams   tinyxml2   选择   

1、tinyxml 的官网

http://www.grinninglizard.com/tinyxml/

2、tinyxml 有2个版本:tinyxml和tinyxml2

3、这2个版本的优缺点如下:

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、本人果断的选择了 tinyxml2

 

c++ xml 解析器

标签:support   base   ror   hit   dom   nic   streams   tinyxml2   选择   

原文地址:http://www.cnblogs.com/happykoukou/p/6307257.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!