title: Parse XML using XDocument in Windows Phone 8
body: <p>Can any one tell me how to parse XML which is in this format using XDocument in Windows phone 8</p>
  
  <pre><code> &lt;search total=""  totalpages=""&gt;
   &lt;domain&gt;
   &lt;makes filter=""&gt;
   &lt;make cnt="374" image="abc.png"&gt;One&lt;/make&gt;
   &lt;make cnt="588" image="bca"&gt;Two&lt;/make&gt;
   &lt;make cnt="105" image="tley.png"&gt;Three&lt;/make&gt;
   &lt;make cnt="458" image="mw.png"&gt;Four&lt;/make&gt;
   &lt;/makes&gt;
   &lt;/domain&gt;
   &lt;/search&gt;
  </code></pre>
  
  <p>Right now i am using this code but unable to get the data out. I need image and name from this XML.</p>
  
  <pre><code>XDocument xdoc = XDocument.Parse(flickRes);
  var rootCategory = xdoc.Root.Elements("makes");
  List&lt;string&gt; list = new List&lt;string&gt;();
  
  foreach (XElement book in rootCategory.Elements("make"))
  {
      string id = (string)book.Attribute("image");
      string name = (string)book;
      Debug.WriteLine(id);
      //list.Add(data);
  }
  </code></pre>
  
  <p>Thanks In Advance</p>