DataManager.setNamespacePrefix(xml);
try {
dataMan.validate(schema, xml);
} catch (XSDValidationErrorEx e) {
if (!fileName.equals(" ")) {
throw new XSDValidationErrorEx(e.getMessage()+ "(in "+fileName+"): ",e.getObject());
} else {
throw new XSDValidationErrorEx(e.getMessage(),e.getObject());
}
}
//--- Now do the schematron validation on this file - if there are errors
//--- then we say what they are!