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:
- HOWTO: Use XPath Queries in MSXML DOM selectNodes Method
- HOWTO: Use the contains() XPath Function When You Are Programming the MSXML DOM
- PRB: Using XPath to Query Against a User-Defined Default Namespace
- INFO: Use XPath to Perform a Case-Insensitive Search with MSXML
- HOWTO: Use the starts-with() XPath Function
|