My input is XElement object - and i need to convert this object to Dictionary
The XElement is look like this
<Root>
<child1>1</child1>
<child2>2</child2>
<child3>3</child3>
<child4>4</child4>
</Root>
And the output that i actually need to return is
Dictionary that look like this
[ Child1, 1 ]
[ Child2, 2 ]
[ Child3, 3 ]
[ Child4, 4 ]
How can i do it ?
thanks for any help.