public class xmlvalues
{
public int id { get; set; }
public string a { get; set; }
public string b { get; set; }
public string c { get; set; }
}
-- XML Example
<instance>
<id>>1</id>
<a>value 1A</a>
<b>value 1B</b>
<c>value 1C</c>
</instance>
<instance>
<id>>2</id>
<a>value 2A</a>
<b>value 2B</b>
<c>value 2C</c>
</instance>
Using the above example is possible to create an object for each "instance" node in the XML file? In this example there would be 2 instances of the object "xmlvalues" but in theory there could be many more. Is there an easy way to do this?
loopandLINQ to XMLto do this