次の方法で共有


data Property (IXMLDOMCharacterData) (Windows Embedded CE 6.0)

1/6/2010

Stores the node data depending on the node type.

Script Syntax

            strValue = oXMLDOMCharacterData.data;
objXMLDOMCharacterData.data = strValue;

Remarks

Ee503462.collapse(en-US,WinEmbedded.60).gifScript Parameters

None.

Ee503462.collapse(en-US,WinEmbedded.60).gifScript Return Value

String. Returns the same value as the nodeValue for this node.

Ee503462.collapse(en-US,WinEmbedded.60).gifC/C++ Syntax

HRESULT get_data(
  BSTR* data
);
HRESULT put_data(
  BSTR data
);

Remarks

Ee503462.collapse(en-US,WinEmbedded.60).gifC/C++ Parameters

  • data
    [in] [out, retval] Same value as the nodeValue for this node.

Ee503462.collapse(en-US,WinEmbedded.60).gifC/C++ Return Values

  • S_OK
    Value returned if successful.
  • S_FALSE (for get_data only)
    Value returned if there is no character data node.
  • E_INVALIDARG (for get_data only)
    Value returned if data is Null.
  • E_FAIL (for put_data only)
    Value returned if an error occurs.

Ee503462.collapse(en-US,WinEmbedded.60).gifRequirements

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

General Remarks

It contains the same value as the nodeValue for this node. The meaning of the value depends on the nodeType property of the IXMLDOMNode, as follows.

Value Description

NODE_CDATA_SECTION

A string representing the text stored in the CDATA section.

NODE_COMMENT

The content of the comment, exclusive of the comment start and end sequence.

NODE_TEXT

A string representing the text stored in the text node.

This property is read/write, and applies to the following objects and interfaces:

IXMLDOMCDATASection, IXMLDOMCharacterData, IXMLDOMComment, IXMLDOMNode, and IXMLDOMText

See Also

Reference

XML DOM Properties

Concepts

nodeType Property
nodeValue Property