Share via


value Property

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

Contains the attribute value.

Script Syntax

            objValue = oXMLDOMAttribute.value;
objXMLDOMAttribute.value = objValue;

Remarks

Script Parameters

None.

Script Return Value

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++ Syntax

HRESULT get_value(
  VARIANT* attributeValue
);
HRESULT put_value(
  VARIANT* attributeValue
);

Remarks

C/C++ Parameters

  • 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).

C/C++ Return Values

  • 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.

Requirements

Header msxml2.h, msxml2.idl
Windows Embedded CE Windows CE .NET 4.0 and later

General 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:

IXMLDOMAttribute.