xmlserializer serializes a DOM subtree or DOM document into XML/XHTML