I want to create the following xml:
<StartLot>
<fileCreationDate level="7">201301132210</fileCreationDate>
<fmtVersion level="7">3.0</fmtVersion>
</StartLot>
Below is the Serialization code:
[Serializable]
class StartLot
{
public fileCreationDate{get; set;}
[XmlAttribute("level")]
public string level = "7";
public fmtVersion{get; set;}
[XmlAttribute("level")]
public string level = "7"; ??
}
Since I already declared attribute level, how do I add the last attribute?
[Serializable]attribute does not affect XML serialization, but it shouldn't break anything leaving it in.