次の方法で共有


normalize Method (Windows Embedded CE 6.0)

1/6/2010

Normalizes all descendant elements by combining two or more adjacent text nodes into one unified text node.

Script Syntax

oXMLDOMElement.normalize();

Remarks

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

None.

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

None.

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

HRESULT normalize(void);

Remarks

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

None.

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

  • S_OK
    Value returned if successful.
  • E_FAIL
    Value returned if an error occurs.

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

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

General Remarks

This method converts all text node descendants of this element (at any depth) into a normal form where no text nodes are adjacent. In normal form, text nodes can be separated only by markup, such as tags, comments, processing instructions, CDATA sections, and entity references. The normal form is useful for operations that require a particular document tree structure and ensures that the XML Document Object Model (DOM) view of a document is identical when saved and reloaded.

Collapsed node objects are automatically deleted.

This method applies to the following objects and interfaces:

IXMLDOMText, and IXMLDOMElement.

See Also

Reference

XML DOM Methods