In this article simply I will try to explain, how to write an XML document using c#. Extensible Markup Language(XML) was designed to transport and store data, with focus on what data is[1]. I think sometimes programmer needs to write XML document from other source of data. In my article I try to do that as a simple manner.