Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
Contains the attribute value.
Script Syntax
Copy Code | |
---|---|
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
Copy Code | |
---|---|
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 attributeValueis 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: