How to use xml id to fill class object?
问题 I have the following class definition in C#: class Supervisor { public string Id { set; get; } public string Name { set; get; } public int Contracts { set; get; } public long Volume { set; get; } public int Average { get; } } I also have this xml document : <digital-sales xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <supervisor id="1236674"> <Name>Hiroki</Name> <Contract>11</Contract> <Volume>1036253</Volume> <Average>94205</Average> </supervisor> <supervisor id="123459"> <Name