getProperty Method (IXMLDOMDocument2)
TOC
Collapse the table of content
Expand the table of content

getProperty Method (IXMLDOMDocument2)

 

Retrieves the value of one of the second-level properties that are set either by default or using the setProperty method.

strPropValue = objXMLDOMDocument2.getProperty(name);

 name 

The string name of the property. This name is case-sensitive.

var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.3.0");
xmlDoc.setProperty("SelectionLanguage", "XPath");
WScript.Echo(xmlDoc.getProperty("SelectionLanguage"));

Output

XPath

HRESULT getProperty(BSTR name, VARIANT* value);

 name [in]

The string name of the property. This name is case-sensitive.

 value [out, retval]

The variant return value of the requested flag.

S_OK

The value returned if successful.

E_FAIL

The value returned if property name is invalid.

Implemented in: MSXML 3.0 and MSXML 6.0

         IXMLDOMDocument2       

Show:
© 2016 Microsoft