Used in MSXML 3.0 to specify whether the DOM object should use XPath language ("XPath
") or the old XSLPattern language (default) as the query language.
domObj.setProperty(strProp, strVal); strVal= domObj.getProperty(strProp);
domObj.setProperty(strProp, strVal) strVal= domObj.getProperty(strProp)
HRESULT setProperty(BSTR strProp, VARIANT strVal); HRESULT getProperty(BSTR strProp, VARIANT* strVal);
XPath
". In MSXML 3.0 you can set this property to "XPath"
to switch the query language from XSLPattern to XPath. Once the property is set, there is no way to switch back without creating an instance of a new DOM object.
MSXML 4.0 and later supports XPath as the only query language. This property is always set to "XPath
" in MSXML 4.0 and later. You can ignore this property completely.
xmldoc.setProperty("SelectionLanguage", "XPath"); // JScript xmldoc.setProperty "SelectionLanguage", "XPath" ‘ VBScript
Component: MSXML 3.0 and later
Interface: IXMLDOMDocument2
Method: setProperty | getProperty