title: Create XML document at given path
body: <p>It's very clear from the title that I want to create a XML document in my Silverlight 5 app at certain path. I know we can use <code>XDocument</code> available in <code>System.Xml.Linq</code> to create XML file. As I understand,  the file is created in "My Documents" folder if we use <code>XDocument</code>. How can I save XML document to desired path? Is it possible to save XML document to desired path with elevated trust in Silverlight 5 without "Save File Dialog"?</p>
  
  <p><strong>UPDATE:</strong> Though there is a method <code>Save()</code> available in <code>XDocument</code> there is no overload for <code>Save()</code> in Silverlight 5 which accepts <code>string</code> parameter otherwise it would be easy to send path to <code>Save()</code>. I tried to save using <code>StreamWriter</code>. Below is my code:</p>
  
  <pre><code>using (var outfile = new StreamWriter(@"C:\Users\Tejas\Desktop\Sample.xml"))
  {
         var doc = new XDocument(new XElement("Root", new XElement("Child", "content")));
         doc.Save(outfile);
  }
  </code></pre>
  
  <p>But it's giving me <code>System.Security.SecurityException</code> with the message <code>File operation not permitted. Access to path 'C:\Users\Tejas\Desktop\Sample.xml' is denied.</code> Is it because my Silverlight 5 application is not trusted? One more thing I want to mention that <em>I don't want to achieve it using "SaveFileDialog"</em>.</p>