title: How to convert XDocument to FileStream in C#
body: <p>I have seen this post <a href="https://stackoverflow.com/questions/277783/how-to-correctly-open-a-filestream-for-usage-with-an-xdocument">How to correctly open a FileStream for usage with an XDocument</a> but it doesn't help me since I don't have the path to the file on the local hard drive. This XDocument is getting passed to another computer so the BaseURI is worthless. </p>
  
  <p>I want to know how to convert an XDocument into a FileStream without using a local file path.</p>