public T fromXML ( String xml ) throws Exception { Unmarshaller u = this . getUnmarshaller ( ) ; u . setProperty ( MarshallerProperties . MEDIA_TYPE , "application/xml" ) ; T result = this . fromString ( u , xml ) ; return result ; }
get an instance of T for the given xml string