Hi. You can use the XmlAttribute attribute to serialize a property as an attribute.
public class Job{ public string Company { get; set; } public Location Location { get; set; } [XmlAttribute] public string Active { get; set; }}
No comments:
Post a Comment