normalizeDocument( ) (3)
This method performs the equivalent of a load and save
operation, returning the document to its "normal" form. This
includes coalescing Text
nodes,
possibly expanding EntityReference
nodes, etc. The types of operations that occur during the
normalization process are controlled by the values of the
parameters in the DOMConfiguration
object (see the
domConfig
attribute). For a
list of the standard configuration parameters available, see the
DOMConfiguration
interface.