public String getString ( Marshaller marshaller , T instance ) throws JAXBException { StringWriter sw = new StringWriter ( ) ; marshaller . marshal ( instance , sw ) ; String result = sw . toString ( ) ; return result ; }
get the string representation of the given marshaller