Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2006

Tip: Looking for answers? Try searching our database.

Object serialization XML vs java serialization

Thread view: 
plasticfloor@gmail.com - 13 Jun 2006 13:00 GMT
I was wondering are there really advantages to using XML serialization
for object or is it just an xml hype?
Matt Humphrey - 13 Jun 2006 15:07 GMT
>I was wondering are there really advantages to using XML serialization
> for object or is it just an xml hype?

I use XML serialization because
   it's no more difficult than binary serialization,
   I can read (view directly) the results as text when needed,
   I can manually edit the serialized data
   I can transform serialized data using XSL
   I worry less that changes to Java will invalidate the serialization
   It transfers easily across HTTP
   I usually (but not always) don't care that it might be larger or a
little slower

Cheers,
Matt Humphrey matth@ivizNOSPAM.com http://www.iviz.com/ 
Andrew McDonagh - 13 Jun 2006 22:50 GMT
>> I was wondering are there really advantages to using XML serialization
>> for object or is it just an xml hype?
[quoted text clipped - 11 lines]
> Cheers,
> Matt Humphrey matth@ivizNOSPAM.com http://www.iviz.com/ 

Seconded, plus:

it allows for schema evolution (i.e. should we later change the class,
we can easily change the XML to suit the new version).

Its JVM version independent.
hawat.thufir@gmail.com - 14 Jun 2006 04:45 GMT
[...]
>     I can read (view directly) the results as text when needed,
[...]

Not that you'd often want to, but that capability sounds good :)

-Thufir


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.