To enable MSXML for use with XPATH queries you have to set the name spaces and also the language property to XPath like so:-
myDoc := CreateComObject(CLASS_msDOMDocument) AS IXMLDOMDocument2;
myDoc.setProperty('SelectionNamespaces', Format('xmlns:my="%s"', [NSMY]));
myDoc.setProperty('SelectionLanguage','XPath'); // enable advanced query
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment