The W3C XML Schema Language is not the only schema language.In fact, the XML specification describes document-type definitions (DTDs) as the way to express a schema.XML and Java technology are recognized as ideal building blocks for developing Web services and applications that access Web services. More specifically, how do you access and use an XML document (that is, a file containing XML-tagged data) through the Java programming language?One way to do this, perhaps the most typical way, is through parsers that conform to the Simple API for XML (SAX) or the Document Object Model (DOM).That's because XML has emerged as the standard for exchanging data across disparate systems, and Java technology provides a platform for building portable applications.
Java developers can invoke a SAX or DOM parser in an application through the JAXP API to parse an XML document -- that is, scan the document and logically break it up into discrete pieces.
It is extending When a fatal error occurs, the parser cannot continue.
For nonfatal errors and warnings, default error handler would not generate exceptions and no messages are displayed.
Binding an XML Schema JAXB simplifies access to an XML document from a Java program by presenting the XML document to the program in a Java format.
The first step in this process is to bind the schema for the XML document into a set of Java classes that represents the schema.