Validating xml with sax parser
This is the class I'm using:: I maybe be able to adapt it to do the same thing. At the moment, my validation fails immediately because the xmlns version number in the incoming XML doesn't match the one I'm using.(If a combination is not supported by any particular implementation, it is required to generate a factory configuration error.)Although a full treatment of XML Schema is beyond the scope of this tutorial, this section will show you the steps you need to take to validate an XML document using an existing schema written in the XML Schema language.(You can also examine the sample programs that are part of the JAXP download.For now, think of these attributes as the "magic incantation" you use to validate a simple XML file that doesn't use them.
Once you've learned more about namespaces, you'll see how to use XML Schema to validate complex documents that use them.
The second line specifies the schema to use for elements in the document that do not have a namespace prefix -- that is, for the elements you typically define in any simple, uncomplicated XML document.