}
break;
case XMLStreamConstants.CHARACTERS:
case XMLStreamConstants.SPACE:
if (fStAXValidatorHandler != null) {
Characters chars = fCurrentEvent.asCharacters();
fStAXValidatorHandler.setIgnoringCharacters(true);
sendCharactersToValidator(chars.getData());
fStAXValidatorHandler.setIgnoringCharacters(false);
fStAXValidatorHandler.characters(chars);
}
else {
sendCharactersToValidator(fCurrentEvent.asCharacters().getData());
}
break;
case XMLStreamConstants.CDATA:
if (fStAXValidatorHandler != null) {
Characters chars = fCurrentEvent.asCharacters();
fStAXValidatorHandler.setIgnoringCharacters(true);
fSchemaValidator.startCDATA(null);
sendCharactersToValidator(fCurrentEvent.asCharacters().getData());
fSchemaValidator.endCDATA(null);
fStAXValidatorHandler.setIgnoringCharacters(false);