Hi
 
if you use JAXB this is a snatch.
 
Hermod
-----Opprinnelig melding-----
Fra: Ivan Bradac [mailto:[EMAIL PROTECTED]]
Sendt: 2. september 2002 09:04
Til: JDJList
Emne: [jdjlist] Serialization x XMLization

Hi all
 
We are developing a desktop application. It is necessary to set up  a system of storing the user's workspace settings. I think there are two standard options how to do this:
 
1. Serialization
2 . Store the settings in an XML file or a set of XML files.
 
I wonder which of theses approaches suites better. As of now, I can think of the following pros and cons :
 
Serialization:
pros: easy to implement, it is built in java, java objects directly are stored
cons: the stored streams are not human readable, there may be problems with versions of the serialized classes. Only a java application can read this data. 
 
XML filesystems:
pros: Human readable and editable, a standard way of storing data, not dependent on the programming language
cons: requires more work at the implementation, at least at the beginning
 
Right now I am more in favor od the XML filesystems solution. Does anybody have any opinion ar experience with this topic?
 
Thanks
 
Ivan
To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email.

This email message has been virus checked by the virus programs used
in the DnB Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm

Reply via email to