I need to convert xml to list in a particular format and I can't get my head around how to.
Below is the structure of xml. Under 'item' there can be unknown numbers of unknown items with values.

How can I transform to a list like below? The class i have is as below.

Basically, like this. There can be any numbers of item in there.

And finally use it like
var items = new List<item>();
I hope someone can help me.
XmlSerializer, or are you open to usingXmlDocumentorXDocument? What have you tried so far?XmlSerializerby means ofIXmlSerializableinterface (though it can be a bit of a pain).