title: xmltextwriter path in c#
body: <p>I am trying to use xmltextwriter and assign a path which needs to use for writing. 
  I am trying this:</p>
  
  <pre><code>  string path = "~/Uploads/site/" + Current.User.Id + .kml";                                  
  XmlTextWriter xtr = new XmlTextWriter(path, System.Text.Encoding.UTF8);
  </code></pre>
  
  <p>I want the file to be saved in the uploads/site/ folder within the website directory, but I am getting an error:</p>
  
  <pre><code>Could not find a part of the path 'c:\windows\system32\inetsrv\~\Uploads\site\16.kml'.
  </code></pre>
  
  <p>I would like to know how I can assign the desired path to the xmltextwriter.
  Thanks in advance, Laziale</p>