Microsoft XML SDK 2.6 - XML Reference

IXMLDOMDocument2::setProperty Method

Generic mechanism for setting properties.

Visual Basic Syntax

objXMLDOMDocument2.setProperty(name, value)

C/C++ Syntax

HRESULT setProperty (BSTR name, VARIANT value);

Parameters

name [in]
The "SelectionLanguage" value.
value [in]
Either "XPath" or "XSLPattern".

C/C++ Return Values

S_OK
Value returned if successful.
E_FAIL
Value returned if name or value is invalid.

Remarks

Use this interface to set the SelectionLanguage property. Existing properties from IXMLDOMDocument are not accessible with this method. White space is not stripped or normalized in property names or values.

See Also

IXMLDOMDocument2 Interface