File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Product and Other Certifications and the fly likes Significance of XML encoding/decoding over Serialization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "Significance of XML encoding/decoding over Serialization" Watch "Significance of XML encoding/decoding over Serialization" New topic

Significance of XML encoding/decoding over Serialization

Harish Tiruvile
Ranch Hand

Joined: Dec 01, 2005
Posts: 99
while reading XML encoding/decoding i noticed one thing....we can store the state of an object...storing the state of an object in XML file is more effective when compared to ordinary file(ex:notepad .txt)...

So i want to confirm whether storing state in XML file will be more effective than serialization ?

If XML is more effective then please tell me in what way(i knows it supports(ofcourse both supports) OOps concept,other than this)......(correct me if i am wrong)

Will xml replace serialization(because i hope we can extracting the data quickly compared to less delay)

if you knows any links that explains this topic(XML vs Serialization)then please attach that link here.

one more thing::in serialization if i serialize an Object then class which come under that Hirarichy will also get serialized automatically(we wont write code for that)...Is it the same case in XML(especially using encoding/decoding technique java.beans.XMLEncoder\XMLDecoder)?
[ July 07, 2006: Message edited by: harish thrivile ]

Giving up is the easiest thing in the world to do..but holding it together when everything seems like falling apart is true strength!!
with regards, Harish.T
I agree. Here's the link:
subject: Significance of XML encoding/decoding over Serialization
It's not a secret anymore!