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. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).