Convert your Data Transfer Object to XML (XML Serialization and Deserialization)

Introduction
When we need to transfer our object through internet or need to write in a file then it is necessary to convert it to XML. We can convert object to XML using XML Serialization. In this article we will discuss about how to convert object (It may be entity/ Data Container/ DTO) to XML.

Here we will use XML Serialization & Deserialization for converting our object to XML and XML to Object.

Continue reading