I have an application in which data is stored in some Java object, I want this to be written to a file and this file should be a XML file, because if changes are made later to the structure of the object(a new version is developed)it is easy to convert the old file with the same structure as the new one. Anybody here can help me in this.