Validating xml using sax parser
When you pass a URI identifying a particular schema language to that know how to process your schema language.Then, install your JAR in one of these four locations.This package is also available in Java 1.3 and later when you install JAXP 1.3 separately.
For example, suppose you want to log all validation errors, but you don't want to stop processing when you encounter one.This is useful for adding constraints that are more easily checked in a Turing-complete language like Java than in a declarative language like the W3C XML Schema language.You can define a mini-schema language, write a quick implementation, and plug it into the validation layer.However, once you learn the API for validating DOM documents against RELAX NG schemas (for instance), you can use the same API to validate JDOM documents against W3C schemas. Schema Instance(Schema Factory.java:186) at Docbook RELAXNGCheck.main(Docbook RELAXNGCheck.java:14) This isn't a closed list.For example, Listing 2 shows a program that validates Doc Book documents against Doc Book's RELAX NG schema. The only things that have changed are the location of the schema and the URL that identifies the schema language. Implementations are free to add other URLs to this list to identify other schema languages.