title: How to scan XElement and put all the element ( with value ) in Dictionary?
body: <p>My input is XElement object - and i need to convert this object to Dictionary</p>
  
  <p>The XElement is look like this </p>
  
  <pre><code> &lt;Root&gt;
      &lt;child1&gt;1&lt;/child1&gt;
      &lt;child2&gt;2&lt;/child2&gt;
      &lt;child3&gt;3&lt;/child3&gt;
      &lt;child4&gt;4&lt;/child4&gt;
   &lt;/Root&gt;
  </code></pre>
  
  <p>And the output that i actually need to return is </p>
  
  <p>Dictionary that look like this </p>
  
  <pre><code>[ Child1, 1 ]
  [ Child2, 2 ]
  [ Child3, 3 ]
  [ Child4, 4 ]
  </code></pre>
  
  <p>How can i do it ? </p>
  
  <p>thanks for any help. </p>