Click to return to the XML (Extensible Markup Language) home page    
XMLDOMElement getElements...     XMLDOMElement removeAttri...     XMLDOMElement Object    
Web Workshop  |  XML (Extensible Markup Language)

normalize Method


Normalizes all descendent elements; combines two or more adjacent text nodes into one unified text node.

Syntax

oXMLDOMElement.normalize()

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 XMLDOM view of a document is identical when saved and reloaded.

Collapsed node objects are automatically deleted.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
XMLDOMElement

See Also

XMLDOMText



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.