if (!schemav.isValid())
{
Iterator errors = schemav.getErrors().iterator();
while (errors.hasNext())
{
ErrorMessage err = (ErrorMessage) errors.next();
String uri = err.getURI();
int line = err.getErrorLine();
String errmess = err.getErrorMessage();
errmess = replaceNamespace(errmess, namespace);
int severity = err.getSeverity();
if(line > 0)
{
if(uri == null || uri.equals(valInfo.getFileURI()))
{
Object objectAtLine = getObjectAtLine(line - 1, elements);
if (severity == DOMError.SEVERITY_WARNING)
{
valInfo.addWarning(errmess, objectAtLine);
}
else
{
valInfo.addError(errmess, objectAtLine);
}
}
else if(!inlineEntityResolver.isInlineSchema(uri) && !uri.equals(valInfo.getFileURI() + InlineXSDResolver.INLINE_SCHEMA_ID))
{
int errorColumn = err.getErrorColumn();
if (severity == DOMError.SEVERITY_WARNING)
{
valInfo.addWarning(errmess, line, errorColumn, uri);
}
else