public static ValidatorResponse unmarshal ( String xml ) throws JAXBException { JAXBContext jaxbContext = JAXBContext . newInstance ( "org.biopax.validator.jaxb" ) ; Unmarshaller un = jaxbContext . createUnmarshaller ( ) ; Source src = new StreamSource ( new StringReader ( xml ) ) ; ValidatorResponse resp = un . unmarshal ( src , ValidatorResponse . class ) . getValue ( ) ; return resp ; }
Converts a biopax - validator XML response to the java object .