score:3

Accepted answer

Something like this:

var rawProperties = customerXml.Descendants("property")
    .Select(arg =>
        new
        {
            UnitBalance = arg.Element("unit-balance").Value,
            Registers = arg.Descendants("dials").Select(x => x.Value).ToList()
        })
    .ToList();

Related Articles