title: Cannot read XML File
body: <p>got a little problem with receiving the contents of a xml file (using TouchXML).</p>
  
  <p>My first query works very well, looks something like this:</p>
  
  <pre><code>NSString *url = [NSString stringWithFormat:STATION_ID, latitude, longtitude];
  CXMLDocument *rssParser = [[CXMLDocument alloc] initWithContentsOfURL:[NSURL URLWithString:url] options:0 error:nil];
  NSLog(@"%@",rssParser);
  </code></pre>
  
  <p>so this log gives me the complete XML file.</p>
  
  <p>after that, in another method im trying the same:</p>
  
  <pre><code>NSString *url = [NSString stringWithFormat:WEATHER_URL, [positionInformation objectForKey:@"stationId"]];
  CXMLDocument *rssParser = [[CXMLDocument alloc] initWithContentsOfURL:[NSURL URLWithString:url] options:0 error:nil];
  NSLog(@"%@", rssParser);
  </code></pre>
  
  <p>but the log im getting is (null).
  Loggin the URL String gives me the right URL without spaces or something, the URL Log for example looks like this:</p>
  
  <pre><code>NSString *url = [NSString stringWithFormat:WEATHER_URL, [positionInformation objectForKey:@"stationId"]];
  NSLog(@"%@", url);
  </code></pre>
  
  <p>The result in the debugger Console is </p>
  
  <pre><code>http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=KCASUNNY19
  </code></pre>
  
  <p>looking at this file with my browser seems to be ok. Anybody know whats going wrong?????</p>
  
  <p>I also tried, first to get the content of this URL by stringWithContentsOfURL, but this also not worked.</p>