XmlOptions options = new XmlOptions();
options.setLoadLineNumbers();
try {
return sourceContext.getSourceContent().getXmlBeansInstance().getXmlObject().validate(options);
} catch (XmlException e) {
throw new ValidationException(e);
} catch (IOException e) {
throw new ValidationException(e);
}
}