This abstract class defines the validation handler API's
![]() | getters.
|
![]() | getScanner () const Returns the scanner object |
![]() | getScanner () const Returns the scanner object |
![]() | getScanner () const Returns the scanner object |
This abstract class defines the validation handler API's. which can be installed in a validating parser configuration. The parser uses this handler to verify whether the XML data that it is parsing conforms to the rules specified in the DTD. The class XMLScanner defines the interface which allows a validation handler to be installed. The only difference between a validating and non-validating parser is the presence of one these validation handlers.
childNames
parameter.
void setScanner(XMLScanner* const srcScanner)
If the root element found in the DTD does not match the element specified, it returns false.
virtual bool checkAttributes( const ElementDecl& element, const XMLAttr** attributes, const unsigned int attrCount )
attributes
list.
virtual int checkContent( ElementDecl& element, const unsigned int* childIds, const unsigned int childCount )
childIds
parameter.
virtual void postParseValidation( RefHashTableOf
For example checks like, all the ID references encountered should refer to some element with that id. Any errors found are reported back via the scanners 'emitError' method.
All errors found are reported back using the scanner's
virtual void resetValidation()
virtual void validatePoolInfo( NameBasedPool
emitError
method.
elemNotationPool - The pool containing all notation
declaration. This parameter is currently
not ignored.
void operator=(const XMLValidationHandler&)
alphabetic index hierarchy of classes
XML Parser for C++ 2.0 Copyright © IBM Corp, 1999 Center for Java Technology 10275 N. De Anza Blvd. Cupertino CA 95014 USA Email: xml4c@us.ibm.com |
|