XPath 和 TXmlDocument
在Delphi XE中,是否可以将XPath与TXmlDocument
组件?
我知道我可以使用后期绑定来访问 MSXML2,然后使用 XPath:
XML := CreateOleObject('MSXML2.DOMDocument.3.0') ;
XML.async := false;
XML.SetProperty('SelectionLanguage','XPath');
但我想知道是否 随Delphi XE一起安装的TXmlDocument
支持XPath。
In Delphi XE is it possible to use XPath with a TXmlDocument
component?
I'm aware I can use late binding to access the MSXML2 and then use XPath:
XML := CreateOleObject('MSXML2.DOMDocument.3.0') ;
XML.async := false;
XML.SetProperty('SelectionLanguage','XPath');
But I wanna know if TXmlDocument
installed with Delphi XE supports XPath.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 TXMLDocument 文档中找不到有关 XPath 的任何内容。来自 OmniXML XPath 演示的 XML 示例:
尝试如下操作:
仅供其他人参考,我将其保留在:OmniXML 支持 XPath,并且有一个演示很好地展示了如何使用它。它也是免费的,附带源代码,支持 Unicode,并且通过其论坛获得了很好的支持。
I can't find anything in the TXMLDocument documentation about XPath.XML example, from the OmniXML XPath demo:
Try something like this:
Just as an FYI for others, I'll leave this in: OmniXML supports XPath, and has a demo that shows really well how to use it. It's also free, comes with source, supports Unicode, and has pretty good support through it's forums.