title: XDocument memory usage problem
body: <p>I have a small application that builds up a xml document using XDocument. However, after a while the app is using more than 1gb ram.</p>
  
  <p>So I was wondering if there is anyway to make XDocument use the disk instead of in-memory. For example by opening a StreamWriter and save it to a file on the go.</p>
  
  <p>Thank you in advance.</p>