Click to return to the XML (Extensible Markup Language) home page    
IXMLDOMAttribute::name Pr...     IXMLDOMAttribute Interfac...    
Web Workshop  |  XML (Extensible Markup Language)

IXMLDOMAttribute::get_value Method


Contains the attribute value.

Visual Basic Syntax

strValue = oXMLDOMAttribute.value

C/C++ Syntax

HRESULT get_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_INVALIDARG
Value returned if attributeValue is null.


IXMLDOMAttribute::put_value Method


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.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.