1

Topic: TXMLDocument/IDOMDocument And XPath with namespace

Colleagues, prompt please how it is possible to use XPath with  in  TXMLDocument? As to do it through MSXML_TLB I know, but it does not approach. How to use  in TXMLDocument (setting , creation/removal  etc.) too is clear how to use XPath in TXMLDocument/IDOMDocument too, but here is how to combine one and the friend? Something can not that with syntax or still that? You render the invaluable help, giving though what unpretentious  smile

2

Re: TXMLDocument/IDOMDocument And XPath with namespace

Not clearly that with what to combine.

3

Re: TXMLDocument/IDOMDocument And XPath with namespace

In my opinion it is obvious:

wrote:

TXMLDocument/IDOMDocument and XPath with namespace

Apparently, my problem solves here OmniXML: https://github.com/mremec/omnixml

4

Re: TXMLDocument/IDOMDocument And XPath with namespace

var
XML: TXMLDocoment;
Dom2: IDomDocument2;
begin
.............
Dom2: = XML.DOMDocument as IDomDocument2;
Dom2.setProperty (' SelectionNamespaces', ' xmlns:a = "http://www............" ');
Dom2.selectSingleNode ('/a:Root/b:Child ');

5

Re: TXMLDocument/IDOMDocument And XPath with namespace

Or so

/ * [namespace-uri () = '... ' and local-name () = '... ']