code: 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;
      }
docs: Converts a biopax-validator XML response to the java object.
  
  @param xml input XML data - validation report - to import
  @return validation report object
  @throws JAXBException when there is an JAXB unmarshalling error