XML DOM normalize() method

Node object reference manual

Definition and usage

Merge adjacent Text nodes and delete empty Text nodes.

Syntax:

nodeObject.normalize()

Description

This method will traverse all descendant nodes of the current node, normalize the document by merging adjacent Text nodes and deleting empty Text nodes. This method is very useful for simplifying the structure of the document tree after node insertion or deletion operations.

See also

Text

Node object reference manual