nedcomp hosting homepage

Producten en diensten
Dedicated servers
Datacenter informatie
Partners, resellers
Helpdesk informatie
Technische docs, tools
Support homepage
ASP componenten
Praktische ASP, ASP.NET
Visual route server
Whois (domein gegevens)
Software documentatie
Whitepapers
Zoeken
Nedcomp / algemeen

Zoeken
 

Copyright © Nedcomp Hosting
Telefoon nr :   +31 184 670111
Fax nummer :   +31 184 631384
E-mailadres :   info@nedcomp.nl
 

Microsoft XML Core Services (MSXML) 4.0 - SAX2 Developer's Guide

Validate Documents Using SAX

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:

  • Validating from within SAX applications, which differs from validating XML in DOM-based applications.
  • Validating XML file input to a user-selectable XSD schema file.
  • Using SAX error handler and SAX locator information to improve error reporting for your SAX application.

This topic is divided into the following sections.

See Also

Sample XML File (books.xml)

Note   Currently, SAX-based validation only supports external XSD schemas. SAX-based validation using Document Type Definition (DTD) files is not supported.


Download de SDK