XML and Binary Serialization

What is XML Serialization and Binary Serialization? Where it actually used?

Questions by karthikeyanakka

Showing Answers 1 - 6 of 6 Answers

XML Serialization serializes the object into an xml file. This file is human readable and can be shared with other applications.

Binary serialization is more efficient, but the serialized file is in binary format. It may not make any sense for a human being to open this file and understand what it contains. It is a stream of bytes.

  Was this answer useful?  Yes

IanJoshua

  • Jul 8th, 2008
 

Adding to above responses, XMLSerialization is called Shallow Serialization because it can serialize only public fields

Soap Serialization and Binary Serialization techniques are called Deep Serialization because it serialize the object containing reference to other objects

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions