<resource id="laptops"> <laptop> <code>1</code> <Description>abc1</Description> <NickName>xyz1</NickName> </laptop> <laptop> <code>2</code> <Description>abc2</Description> <NickName>xyz2</NickName> </laptop> </resource>
<resource id="laptops"> <laptop id="1"> <Description>abc1</Description> <NickName>xyz1</NickName> </laptop> <laptop id="2"> <Description>abc2</Description> <NickName>xyz2</NickName> </laptop> </resource>
var result = from c in resourceNode.Descendants("laptops") select new FeesInfo() { FeeCode = (int)c!.Attribute("code")!, FeeDescription = (string)c!.Attribute("Description")!, Proposed = (string)c!.Attribute("NickName")! };
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)