Xml serializer
How the xml serializer works?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
navjyot raut45 reputationPosted Oct 16, 2011, 11:53 PM EDT
Serialization is the process of converting complex objects into stream of bytes for storage. Deserialization is its reverse process, that is unpacking stream of bytes to their original form. The namespace which is used to read and write files is
System.IO. For Serialization we are going to look at theSystem.Runtime.Serializationnamespace. TheISerializableinterface allows you to make any class Serializable.The different types of serialization are
· Binary Serialization
· XML Serialization
· SOAP Serialization
Binary Serialization
Binary serialization is the process where you convert your .NET objects into byte stream. In binary serialization all the public, private, even those which are read only, members are serialized and converted into bytes. So when you want a complete conversion of your objects to bytes then one can make use of binary serialization.
XML Serialization
In XML serialization only the public properties and fields of the objects are converted into XML. The private members are not taken into consideration in XML serialization.
SOAP Serialization
Similar to XML serialization. When you serialize object to SOAP format it conforms to the SOAP specification.
Sam HobbsRank #107 · 20.5K reputationPosted Oct 17, 2011, 1:08 PM EDT