I'd need to load items from XML to a List<T>
.Could you please give me an advice how to do that in c# class? I have a List<Item> lItems = new List<Item>();
and my XML file looks like this:
<Items>
<Item>
<Id>1</Id>
<Title>aaa</Title>>
<ImageUrl>"Images/aaa.gif"</ImageUrl>
</Item>
<Item>
<Id>2</Id>
<Title>bbb</Title>
<ImageUrl>"Images/bbb.jpg"</ImageUrl>
</Item>
<Item>
<Id>3</Id>
<Title>ccc</Title>
<ImageUrl>"Images/ccc.jpg"</ImageUrl>
</Item>
</Items>