Updating a file in java
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.
A new Java API called Java Architecture for XML Binding (JAXB) can make it easier to access XML documents from applications written in the Java programming language.
The Extensible Markup Language (XML) and Java technology are natural partners in helping developers exchange data and programs across the Internet.
For example, it can't update the data in memory and return the updated data to the XML file.
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.The parsed content is then made available to the application.