This application is similar to the search and abort application in that it uses the ISAXLocator
interface, which is also implemented in that application. In the SAX validator application, the location information is used to help provide exact error information when a validation error occurs during SAX parsing.
Results are reported in one of the following ways, depending on whether the XML file validates to the specified XSD schema.
endDocument
method.error
, fatalError
, and ignorableWarning
. These methods reference a private function, WriteErrorToResults
, that is added to the MyValidator
class module.endDocument Method |ISAXErrorHandler Interface | Validate Documents Using SAX | Overview of the SAX Validator Application | Sample XSD Schema File (SAX Validator) | Application Form (SAX Validator) | MyValidator Class (SAX Validator) | Run the Application (SAX Validator)