Unmarshaller setvalidating true
These bindings allow you to unmarshal XML documents into a hierarchy of Java objects and marshal the Java objects into XML with minimal effort.
These three aspects of JAXB are covered by three separate interfaces.
The parsed content is then made available to the application.
Sorry, I confuse in my Main class, it is this: import generated.*; import *; import bind.*; import *; import
Both of these parsers are provided by Java API for XML Processing (JAXP).
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.