I am serializing objects to XML like so using the following code:
using System.IO; using System.Xml.Serialization; namespace ConsoleApplication2 { class Pro
I believe the person in this article has the same problem? Maybe it can provide a solution for you?
C# xml serialization
Using
[XmlElement(IsNullable = true)] public string Two { get; set; }
you can represent it as <Two xsi:nil="true" />
<Two xsi:nil="true" />