#include <common/Validator.h>
Public Member Functions | |
virtual | ~ACEXML_Validator ()=0 |
virtual int | startElement (ACEXML_Attributes *atts ACEXML_ENV_ARG_DECL) ACE_THROW_SPEC((ACEXML_SAXException))=0 |
virtual int | nextElement (const ACEXML_Char *namespaceURI, const ACEXML_Char *localName, const ACEXML_Char *qName ACEXML_ENV_ARG_DECL) ACE_THROW_SPEC((ACEXML_SAXException))=0 |
An validator provides validation service for one XML element. ACEXML_Validators are stateful object. Implementations should remember the current element encountered and determine if it's a valid sequence of child elements. A parser fishes out a validator of certain
ACEXML_Validator::~ACEXML_Validator | ( | ) | [pure virtual] |
virtual int ACEXML_Validator::nextElement | ( | const ACEXML_Char * | namespaceURI, | |
const ACEXML_Char * | localName, | |||
const ACEXML_Char *qName | ACEXML_ENV_ARG_DECL | |||
) | [pure virtual] |
Validate the next child element.
0 | if valid, -1 otherwise. |
virtual int ACEXML_Validator::startElement | ( | ACEXML_Attributes *atts | ACEXML_ENV_ARG_DECL | ) | [pure virtual] |
Validate attributes of an element.
0 | if valid, -1 otherwise. |