Reputation: 4709
How can I tell to the XmlSerializer to serialize a string property that is empty?
[XmlElement("description")]
public string Description
{
get;
set;
}
Upvotes: 0
Views: 362
Reputation:
i did not try it, but "IsNullable" of XmlElementAttribute maybe helps with strings
Upvotes: 1