public List < SAXParseException > getInstanceErrors ( Source instance ) { try { return problemToExceptionList ( validator . validateInstance ( instance ) . getProblems ( ) ) ; } catch ( XMLUnitException e ) { throw new XMLUnitRuntimeException ( e . getMessage ( ) , e . getCause ( ) ) ; } }
Obtain a list of all errors in the given instance .