if( !result.isValid() )
{
final ValidationIssue[] issues = result.getIssues();
for( int i = 0; i < issues.length; i++ )
{
final ValidationIssue issue = issues[ i ];
final SAXParseException exception = issue.getException();
final String message = exception.getMessage() +
" on line " +
exception.getLineNumber();
if( issue.isWarning() )
{
logger.info( message );
}
else if( issue.isError() )
{
logger.warn( message );
}
else if( issue.isFatalError() )
{
logger.error( message );
}
}
final ValidateException exception = result.getException();