首页 > 编程语言 > 详细

c++ xml 解析器

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

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 解析器

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!