Microsoft XML 2.5 SDK


 

IXMLDOMAttribute::put_value Method

[This is preliminary documentation and subject to change.]

Contains the attribute value.

Visual Basic Syntax

objXMLDOMAttribute.value = strValue

C/C++ Syntax

HRESULT put_value(

    VARIANT *attributeValue);

Parameters

attributeValue

[out]
Value of the attribute. For attributes with subnodes, the string is the concatenated text of all subnodes with character and general entity reference expanded (replaced with their values).

C/C++ Return Values

S_OK

Value returned if successful.

E_FAIL

Value returned if an error occurs.

Remarks

The new attribute value is added as the value of a single text node that is a child of the attribute node. The string contents are unparsed.