title: How do you create an indented XML string from an XDocument in c#?
body: <p>I have an XDocument object and the ToString() method returns XML without any indentation. How do I create a string from this containing indented XML?</p>
  
  <p>edit: I'm asking how to create an in memory string rather than writing out to a file.</p>
  
  <p>edit: Looks like I accidentally asked a trick question here... ToString() does return indented XML.</p>