The DomDocument class / xml.DomDocument methods |
Normalizes the entire Document.
normalize()
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.