Serialization or XML-DOM? If XML, which parser?

T

Tobi Krausl

Hi!

I'm developing an application in which there's the need given to
manage some kind of status-information. Everytime the status changes
the corresponding data-structure containing the status-information
must be updated and stored in a file.

I was thinking of using Serialization and maybe a TreeMap for holding
the status-data. Using this method would allow to save/restore the
TreeMap-object pretty easily, right? However, I'm not sure whether
this is really a good solution.

An alternative to Serialization would in my opinion be to use XML
(preferred DOM). I think that I'll never need some special features
provided by XML in terms of my problem.

So I'm thinking about what kind of persistence- and storage-
mechanisms I should use?! Performance isn't an issue too, so I
wouldn't mind that XML is a little bit slower than Serialization.

What would you use and why?
If you would use XML (DOM), which Parser (Standard API, JDOM, XERCES,
DOM4J) and why?

Thank you very much,
Tobi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top