有谁知道 C++ XML 解析器/编写器类似于 .Net 的 XML 文档?
我正在编写一个本机 C++ 项目,并且需要一个简单的 XML 解析器/编写器。我已经知道 C# 中的 XmlDocument,所以类似的东西可能非常好,但如果没有,有人知道快速使用的 XML 解析器/编写器吗?
我正在努力将“学习图书馆”的时间缩短到最少。
谢谢!
I'm writing a native C++ project and I need a simple XML parser/writer. I already know XmlDocument in C#, so something similar could be quite good, but if there isn't, does anyone know a quick-to-use XML parser/writer?
I'm trying to shorten my "learning of the library" time to minimum.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以考虑以下几个:
There are quite a few you can consider:
我使用过 TinyXML,它对于我的需要来说工作得相当好。不过我的需求并不是太苛刻。至少当我使用它时,它根本不处理 DTD/XSD,所以如果您需要处理这些,它可能不是一个选择。
I've used TinyXML, and it's worked reasonably well for what I've needed. My needs weren't terribly demanding though. At least when I used it, it didn't deal with DTD/XSD at all, so if you need to handle those it's probably not an option.
我最终使用了 RapidXML (http://rapidxml.sourceforge.net/)。
对我来说,它很直观,而且非常容易学习。
没有人推荐它,所以我添加了自己的答案:-\ ...
I ended up using RapidXML (http://rapidxml.sourceforge.net/).
For me, its intuitive, and was really easy to learn.
No body recommended it so I added my own answer :-\ ...