value Property (Compact 2013)
3/26/2014
Contains the attribute value.
Syntax
objValue = oXMLDOMAttribute.value;
objXMLDOMAttribute.value = objValue;
HRESULT get_value(
VARIANT* attributeValue
);
HRESULT put_value(
VARIANT* attributeValue
);
Parameters
Script
None.
C/C++
- attributeValue
[out, retval][in] 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).
Return Value
Script
Variant. It returns the value of the attribute. For attributes with subnodes, the string is the concatenated text of all subnodes with character and general entity references expanded (replaced with their values).
C/C++
- S_OK
Value returned if successful.
- E_INVALIDARG (for get_value only)
Value returned if attributeValue is Null.
- E_FAIL (for put_value only)
Value returned if an error occurs.
Remarks
The property is read/write.
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.
This property is read/write, and applies to the following interface:
Requirements
Header |
msxml2.h, |