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
Sunday, 7 February 2010
Subscribe to:
Posts (Atom)