The input document contains an extra attribute which has not been defined in the XML Schema, this shows that the XML Schema has been used for the validation.
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.
The parsed content is then made available to the application.
What this means is that developers can access and process XML data without having to know XML or XML processing.
JAXB simplifies access to an XML document from a Java program by presenting the XML document to the program in a Java format.
For example, a schema identifies the elements that can appear in an XML document, in what order they must appear, what attributes they can have, and which elements are subordinate (that is, are child elements) to other elements.
An XML document does not have to have a schema, but if it does, it must conform to that schema to be a valid XML document.This partnership is particularly important for Web services, which promise users and application developers program functionality on demand from anywhere to anywhere on the Web.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?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.Schema: A schema is an XML specification that governs the allowable components of an XML document and the relationships between the components.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).