title: Illegal characters in path error while parsing XML in C#
body: <p>I'm getting an "Illegal characters in path error" while using XMLTextReader method. Basically, I'm sending a long URL to tr.im, and tr.im sends the response as an XML stream, which I'm trying to parse but I get the above mentioned error. Can you guys guide me as to why I'm getting this error and where I'm going wrong? Here's the code:</p>
  
  <pre><code>WebRequest wrURL;
  Stream objStream;
  string strURL;
  wrURL = WebRequest.Create("http://api.tr.im/api/trim_url.xml?url=" + HttpUtility.UrlEncode(txtURL.Text));
  objStream = wrURL.GetResponse().GetResponseStream();
  StreamReader objSReader = new StreamReader(objStream);
  strURL = objSReader.ReadToEnd().ToString();
  XmlTextReader reader = new XmlTextReader(strURL); //getting the error at this point
  </code></pre>
  
  <p>I'm using Visual Studio 2008, Express Edition</p>