Go back to list of previously asked questions and answers
Question: | I am using MSXML DOM to load an XML document; and XPath expression to locate an element. The expression makes use of contains XPath function. For some reason, this does not work and I get "Run-time error '-2147467259(800004005) Unknown method". I am using MSXML 3.0. | Asked By: | Anthony | Viewed: | 4130 | Answer: | The default query that is used is XSLPattern for backward compatibility. To use XPath, change the SelectionLanguage internal property of DOMDocument to XPath, before calling selectNodes or selectSingleNode.
xmlDOMObject.setProperty "SelectionLanguage", "XPath"
See following links for some more details:
|
Go back to list of previously asked questions and answers
|