Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the value of one of the second-level properties that are set either by default or using the setProperty method.
JScript Syntax
strPropValue = objXMLDOMDocument2.getProperty(name);
Parameters
name
The string name of the property. This name is case-sensitive.
Example
var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.3.0");
xmlDoc.setProperty("SelectionLanguage", "XPath");
WScript.Echo(xmlDoc.getProperty("SelectionLanguage"));
Output
XPath
C/C++ Syntax
HRESULT getProperty(BSTR name, VARIANT* value);
Parameters
name
[in]
The string name of the property. This name is case-sensitive.
value
[out, retval]
The variant return value of the requested flag.
Return Values
S_OK
The value returned if successful.
E_FAIL
The value returned if property name is invalid.
Versioning
Implemented in: MSXML 3.0 and MSXML 6.0