I am serializing an object into XML.
consider class
public class EmpInfo
{
    public string Code;
    public string FirstName;
    public string LastName;
    public string Designation;
    public int Salary;
}
If I don't provide salary then it is by default set as 0 I don't want default values to be set.
In case of Designation, if I don't provide then value is automatically NULL. That tag is not included in XML.
How should I omit the Salary tag if Salary is not provided?