title: How to convert XML to Xelement?
body: <pre><code>string queryText = string.Format(@"&lt;Where&gt;
                  &lt;And&gt;    
                  &lt;Neq&gt;&lt;FieldRef Name='EventType' /&gt;&lt;Value Type='recurrence'&gt;3&lt;/Value&gt; &lt;/Neq&gt; 
  
                  &lt;And&gt;  
                      &lt;Eq&gt;&lt;FieldRef Name='fRecurrence'/&gt;&lt;Value Type='Recurrance'&gt;True&lt;/Value&gt;&lt;/Eq&gt;
                      &lt;And&gt;  
                        &lt;Geq&gt;&lt;FieldRef Name='EndDate' /&gt;&lt;Value Type='DateTime'&gt;{0}&lt;/Value&gt;&lt;/Geq&gt;
                        &lt;Leq&gt;&lt;FieldRef Name='StartDate' /&gt;&lt;Value Type='DateTime'&gt;{0}&lt;/Value&gt;&lt;/Leq&gt; 
                      &lt;/And&gt;     
                  &lt;/And&gt;
  
              &lt;/And&gt;
             &lt;/Where&gt; ", new DateTime(selectedDate.Year, selectedDate.Month, selectedDate.Day).ToString("yyyy-MM-dd"));
  </code></pre>
  
  <p>This is ndQuery of type XmlNode used in sharepoint to filter GetListItem in Windows. Want to do the same in WP8 but it doesnot support Xml, which use XElement so please convert this xml to XElement.
      Thanks in advance.</p>