The interface to the parser is based on the SAX (Simple API for XML) specification.A SAX parser reads the input file and checks it for correctness.One of the main advantages of validation is that we can combine it with standard parsers like SAX. In this case, while handling SAX event we will not care whether the document is valid or not. And we'll receive SAX events from already validated XML content. Interface used by the parser to present error and warning messages to the application.The methods of this object control whether errors are immediately converted to exceptions or are handled in some other way.However, this writing concentrates on the basic application of DOM and SAX.
An application accesses the content of a document through an API provided by an XML parser, and the parser does the job of figuring out what the document consists of.This document contains the following sections:1.0 Sax parser introduction 1.1 XML introduction 1.2 XML versions 1.3 Parsing XML documents 1.4 Well-formed XML documents 1.5 Valid XML documents2.0 The sax API in Allegro CL3.0 Testing the sax parser: the test-sax-parser class4.0 LXML 4.1 What is LXML?4.2 The SAX-LXML Module 4.3 The PXML-SAX Module 4.4 The PXML-DUAL Module 4.5 PXML reference5.0 Index This document has been revised since its first release.Example bellow shows how to insert JAXP validation between source XML-file and SAX-parser: import Default Handler; /** * A sample application which shows how to perform a * XML document validation while parsing XML with SAX.