I am using the XmlSerializer and have the following property in a class
public string Data { get; set; }
which I need to be output exactly like
You could try adding the XMLElementAttribute like [XmlElement(IsNullable=true)] to that member. That will force the XML Serializer to add the element even if it is null.
[XmlElement(IsNullable=true)]