I have a simple Xml Node that I need to recreate
<Division ID="123">Division Name</Division>
But when I create the class as
public class Division
{
[XmlAttribute]
public string Id { get; set; }
[XmlText]
public string Description { get; set; }
}
I get
<Division>Division Name</Division>
The Id vanishes.
How can I make this work?