• Post Reply Bookmark Topic Watch Topic
  • New Topic

Significance of XML encoding/decoding over Serialization  RSS feed

Harish Tiruvile
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!