Delphi“DOMVendor” Open XML 和 Xerces:已知的限制?
使用 Open XML 而不是 MSXML 作为 Delphi 的 IXMLDocument 接口的 DOM 供应商是否安全?
我应该注意的基本功能是否存在已知限制?
Open XML 和 Xerces 实现有何不同? (Xerces 需要额外的库,而 Open XML 似乎包含在可执行文件 iirc 中)
Is it safe to use Open XML instead of MSXML as the DOM Vendor with Delphi's IXMLDocument interface?
Are there known limitations in basic functionality which I should be aware of?
And how do the Open XML and Xerces implementations differ? (Xerces needs additional libraries, while Open XML seems to be included in the executable iirc)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
取决于你需要什么。 MSXML 功能非常齐全,支持 Schema 和 XPath 等。 IIRC,OpenXML仅提供DTD支持,近年来并没有得到太多的TLC。 我非常尊重 Dieter Köhler 的工作,因为他是 Delphi 和 XML 早期的先驱。 我不知道我今天是否会推荐它作为最佳解决方案。
如果您需要 IXMLDocument OpenXML 肯定是一个选择,但我会坚持使用 MSXML,除非您对 MSXML 有特定的担忧(例如需要特定版本的功能)。 如果您对其他库持开放态度,这里是您可能需要考虑的其他选项的非详尽列表:
DIXML - 商业 - 当前且功能非常完整
(www.yunqa.de/delphi/doku.php/products/xml/index)
XMLPartner - 开源 - 不确定当前状态,请检查 CG NG
有关最新更新 (sourceforge.net/projects/tpxmlpartner)
OmniXML - 开源,良好的设计,与 IXMLDocument IIRC 类似的 API
(www.omnixml.com)
NativeXML - 商业、非验证、非常快、非标准但
easy API (www.href.com/nativexml) 注意 ; NativeXML 是由 SimDesign.nl 的 Nils Haeck 开发的。Nils 的网站目前已关闭......这背后有一个很长的故事。
FWIW - 我个人使用过 NativeXML 和 OmniXML,但没有
投诉。 我一直在研究 DIXML,因为它有一个非常
我需要为特定项目提供令人印象深刻的功能集。
大卫
Depends on what you need. MSXML is very feature complete and supports things like Schema and XPath among others. IIRC, OpenXML only provides DTD support and has not gotten much TLC in recent years. I have great respect for Dieter Köhler's work since he was a pioneer in the early days of Delphi and XML. I don't know if I would recommend it as the best solution today.
If you need IXMLDocument OpenXML is certainly an option, but I would stick with MSXML unless you have specific concerns about MSXML (e.g. need features of a specific version). If you are open to other libraries, here is a non-exhaustive list of other options you may want to consider:
DIXML - Commercial - Current and very feature complete
(www.yunqa.de/delphi/doku.php/products/xml/index)
XMLPartner - Open Source - Not sure of current status, check CG NGs
for recent updates (sourceforge.net/projects/tpxmlpartner)
OmniXML - Open Source, good design, similar API to IXMLDocument IIRC
(www.omnixml.com)
NativeXML - Commercial, Non-Validating, very fast, non-standard but
easy API (www.href.com/nativexml) Note ; NativeXML is by Nils Haeck of SimDesign.nl Nils' site is down at the moment..a long story behind this.
FWIW - I personally have used NativeXML and OmniXML and have no
complaints. I have been looking at DIXML since it has a very
impressive feature set that I need for a specific project.
David