klyn.io.xml.dom.XMLNode.normalize
method
public normalize() as Void:
Description

Merges adjacent Text nodes and removes empty Text nodes recursively. CDATA boundaries, retained node identities and the live childNodes view are preserved. Text assembly and child compaction are linear per parent.

Example
root.appendChild(document.createTextNode("a"))
root.appendChild(document.createTextNode("b"))
root.normalize()
assert root.firstChild.nodeValue == "ab"