Validating xml using dtd
The reason is that XML software should be small, fast, and compatible.
Remember that your application will not generate a validation exception unless you supply an error handler such as the one here.
You need to understand about two things about the validating parser at the outset: .
Sun's implementation supports any combination of configuration options.
Errors in XML documents will stop your XML applications.
The W3C XML specification states that a program should stop processing an XML document if it finds an error.
Now that you know how to use an XML Schema definition, we'll turn to the kinds of errors you can see when the application is validating its incoming data.