how to control the xml output during serialization
<p>if any property is blank or null then for that property xml tag is generated like <code>&lt;/Attention&gt;</code>
but i want to generate it like <code>&lt;Attention&gt;&lt;/Attention&gt;</code>. so implement IXmlSerializable interface and from the WriteXml() method i tried to change the xml tag when the value is null or empty but still not getting right output. so please tell me what i need to do to generate the xml tag like <code>&lt;Attention&gt;&lt;/Attention&gt;</code> this if my Attention property is null or empty. basically i want customization of xml output. please guide me.</p>
