I got an XML that I've to validate using an XSD schema, I already got the validation code if an element is missing using an handleEvent:
public boolean handleEvent(ValidationEvent event) { }
JAXBContext readStructure=JAXBContext.newInstance(Cuentas.class);
Unmarshaller jaxbUnmarshaller=readStructure.createUnmarshaller();
jaxbUnmarshaller.setSchema(schema);
jaxbUnmarshaller.setEventHandler(new MyValidationEventHandler());
All I can handle with the handleEvent are errors, Any ideas? (sorry if bad english)