public String asString ( ) throws TransformerException { Properties outputProperties = new Properties ( ) ; outputProperties . put ( javax . xml . transform . OutputKeys . OMIT_XML_DECLARATION , "yes" ) ; return asString ( outputProperties ) ; }
Serialize the XML document to a string excluding the XML declaration .