The xml file is having the following structure
<Root>
<Child value="A"/>
<Child value="B"/>
<Child value="C"/>
<Child value="D"/>
<Child value="E"/>
</Root>
and the dictonary
Dictionary<int, string> dict = new Dictionary<int, string>();
i need to read the attribute value of "value" from the file and add the same to the dictonary as value and index as key
like
dict[1]="A"
dict[2]="B"
dict[3]="C"
dict[4]="D"
dict[5]="E"
for this i'm using the XML to LINQ query as
dict = XDOC.Load(Application.StartupPath + "\\Test.xml").
Descendants("Child").ToDictionary("????", x => x.Attribute("Value").Value);
wat i have to use in the place of "????" in the query
please give a solution to do this