xml.DomDocument.normalize

Normalizes the entire Document.

Syntax

normalize()

Usage

Normalizes the entire Document. This method merges adjacent Text nodes, removes empty Text nodes and sets namespace declarations as if the document had been saved.

See getErrorsCount() and getErrorDescription() to retrieve error messages related to XML document normalization.

In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.