public Object unmarshalMessage ( String xml ) { try { IBindingFactory jc = BindingDirectory . getFactory ( Model . class ) ; IUnmarshallingContext unmarshaller = jc . createUnmarshallingContext ( ) ; Reader inStream = new StringReader ( xml ) ; Object message = unmarshaller . unmarshalDocument ( inStream , BINDING_NAME ) ; return message ; } catch ( JiBXException e ) { e . printStackTrace ( ) ; } return null ; }
Unmarshal this xml Message to an object .