This example demonstrates how to create a simple SAX validator application in Microsoft® Visual Basic®. The application allows the user to select an XML file to be validated against an XSD schema file.
In this example, the SAX reader parses the sample XML file (books.xml), and writes validation results as output to a textbox control on the main form for the application.
The application is kept simple to demonstrate the fundamental principles involved. These principles include the following:
This topic is divided into the following sections.
Note Currently, SAX-based validation only supports external XSD schemas. SAX-based validation using Document Type Definition (DTD) files is not supported.