IXMLDOMAttribute::value Method
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.
See Also
IXMLDOMAttribute Interface