title: How can I save the XML contents of an XDocument as an .xml file?
body: <p>I have an XDocument class with the XML contents already made. I basically want to open a SaveFileDialog, have the user choose a folder (not a file) in which to save the contents as an .xml file.</p>
  
  <p>I'm having some difficulty doing so:</p>
  
  <p>a) How can I use the SaveFileDialog to prompt the user to select a folder? I've only been able to use it to get a user to select a file.</p>
  
  <p>b) How do I extract the chosen path from SaveFileDialog? </p>
  
  <p>c) Once I have the path, how can I save the contents of the XDocument? There's a method called Save that requires a Stream - how do I build the stream using the path? (This might be a basic question, I have almost no IO experience)</p>