question: public static String serialize ( Node doc ) { StringWriter writer = new StringWriter ( ) ; try { serializeNode ( doc , "" , writer ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } writer . flush ( ) ; return writer . toString ( ) ; }
target:  Serialize the given node.