title: Convert XElement to string
body: <p>I have a simple XElement object </p>
  
  <pre><code>XElement xml = new XElement("XML",
      new XElement ("TOKEN",Session["Token"]),
      new XElement("ALL_INCLUSIVE", "0"),
      new XElement("BEACH", "0"),
      new XElement("DEST_DEP", ddlDest.SelectedValue.ToString()),
      new XElement("FLEX", "0")
  );
  </code></pre>
  
  <p>Where want to dump out the contents into a string. Exactly like how <code>Console.Writeline(xml);</code> does, but I want the contents in a string. I tried various methonds. <code>xml.ToString();</code> doesn't return anything on its own.</p>