question: public static String docToString1 ( Document dom ) { StringWriter sw = new StringWriter ( ) ; DOM2Writer . serializeAsXML ( dom , sw ) ; return sw . toString ( ) ; }
target:  Convert a DOM tree into a String using Dom2Writer