Significance of XML encoding/decoding over Serialization
Joined: Dec 01, 2005
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 serialization..so 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