Java not updating
For example, it can't update the data in memory and return the updated data to the XML file.
In the DOM approach, the parser creates a tree of objects that represents the content and organization of data in the document. The application can then navigate through the tree to access the data it needs, and if appropriate, manipulate it.
The parsed content is then made available to the application.
In the SAX approach, the parser starts at the beginning of the document and passes each piece of the document to the application in the sequence it finds it. The application can take action on the data as it gets it from the parser, but it can't do any in-memory manipulation of the data.
In addition, pre-release versions of the JAXB Reference Implementation worked only with DTDs -- that is, not with schemas written in the XML Schema Language.
However, the XML Schema Language is much richer than DTDs.
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).Binding: Binding a schema means generating a set of Java classes that represents the schema.