write

Dumo the DOM nodes to a XML string.
(DOM) Level 1 and DOM Level 2 (The org.w3c.dom API is DOM Level 2 API)
specifications do not have a standard method for loading and saving an XML document.
Instead, we use vendor (crimson) specific code for input to and output from DOM parsers,
which is a disadvantage when portability is a requirement.