I have an object like this,
public class UserObj
{
public string First {get; set;}
public string Last {get; set;}
public addr Address {get; set;}
}
public class addr
{
public street {get; set;}
public town {get; set;}
}
Now when I use XmlSerializer on it and street and town are empty I get this in the XML output,
<Address />
Is there a way not to output this empty tag?
Thanks