private void validateAttributes(Schema schema,Attributes attributes) throws SAXException {
  Validator validator=createValidator(schema);
  ContentHandler ch=validator.getContentHandler();
  initHandler(ch);
  ch.startElement(OWNER_NAME.getNamespaceUri(),OWNER_NAME.getLocalName(),OWNER_NAME.getLocalName(),attributes);
  ch.endElement(OWNER_NAME.getNamespaceUri(),OWNER_NAME.getLocalName(),OWNER_NAME.getLocalName());
  cleanupHandler(ch);
  releaseValidator(schema,validator);
}

private void validateAttributes ( Schema schema , Attributes attributes ) throws SAXException { Validator validator = createValidator ( schema ) ; ContentHandler ch = validator . getContentHandler ( ) ; initHandler ( ch ) ; ch . startElement ( OWNER_NAME . getNamespaceUri ( ) , OWNER_NAME . getLocalName ( ) , OWNER_NAME . getLocalName ( ) , attributes ) ; ch . endElement ( OWNER_NAME . getNamespaceUri ( ) , OWNER_NAME . getLocalName ( ) , OWNER_NAME . getLocalName ( ) ) ; cleanupHandler ( ch ) ; releaseValidator ( schema , validator ) ; }
validates a set of attributes with an attribute schema .
