加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

TinyXML开源XML解析器-TinyXML-2

发布时间:2020-12-16 06:14:46 所属栏目:百科 来源:网络整理
导读:TinyXML-2 is a simple,small,efficient,C++ XML parser that can be easily integrating into other programs. TinyXML-2 是一个简单、小型、高效的C++ XML解析器,它可以很容易地集成到其他程序。 TinyXML-1 served my needs for many years; but it uses


TinyXML-2 is a simple,small,efficient,C++ XML parser that can be easily integrating into other programs.

TinyXML-2 是一个简单、小型、高效的C++ XML解析器,它可以很容易地集成到其他程序。


TinyXML-1 served my needs for many years; but it uses memory inefficiently,and doesn't perform as well as desired for mobile devices. I wanted an XML parser that was a little more modern,a little simpler (the "tiny" had been lost a little over the years),and was a good fit for Android.
TinyXML-1 是我多年来的需要;但它使用内存的效率低下,像在移动设备下它不能运行。我想要一个更流行更简单的XML解析器("tiny"这个词已经失去了很多年),但对于Android是个不错的选择。


This led to TinyXML-2.
这个通向TinyXML-2。


Online Documentation: general information and an API reference.
在线文档:包含一般的信息和API参考。


TinyXML-2 is available on github,where you can send feedback,get source,share,and submit changes. (You can download the source as a zip using the "Download ZIP" button on the right side.)
TinyXML-2 已托管到 github,你可以对反馈问题,取的代码,分享,提交,修改代码。(你可以在右侧的“Download ZIP”按钮,下载zip档。) TinyXML-1 or TinyXML-2? TinyXML-1 还是 TinyXML-2? Both parsers: 共同点: Simple to use with similar APIs. 简单的实用类似的API函数。 DOM based parser. 基于DOM的解析器。 UTF-8 Unicode support. http://en.wikipedia.org/wiki/UTF-8 UTF-8 Unicode 支持:http://en.wikipedia.org/wiki/UTF-8 Advantages of TinyXML-2 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). 更少的内存需要(1/10th to 1/100th??),占用更少的内存(大约是TinyXML-1的40%),更快(读的速度加快5倍)。 No STL requirement. 不需要STL。 More modern C++,including a proper namespace. 用更流行C++,包含一个适当的命名空间。 Proper and useful handling of whitespace 适当的和有用的空格的处理。 Advantages of TinyXML-1 TinyXML-1优点 Can report the location of parsing errors. 能报告解析出错的具体问题。 Support for some C++ STL conventions: streams and strings 支持一些C++ STL的约定:streams 和 strings. Very mature and well debugged code base. 非常成熟和调试代码库. Thanks for your interest in TinyXML - I hope it is a great parser for your needs. 非常感谢你对TinyXML感兴趣--我希望这是一个伟大的解析器,并且能满足你的需求。 And thanks to John Mackay for the logo! 最后感谢John Mackay贡献的logo!

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读