title: Serialization Exception: unexpected character '<'
body: <p>I have this simple method which suppose to get weather data, when I call it this error occur:</p>
  
  <blockquote>
    <p>System.Runtime.Serialization.SerializationException was unhandled by user code
      HResult=-2146233076
      Message=There was an error deserializing the object of type UWpWeather.RootObject. Encountered unexpected character '&lt;'.</p>
  </blockquote>
  
  <pre><code>public async static Task &lt;RootObject&gt; GetWeather(double lat, double lng) {
      var http = new HttpClient();
      var response = await http.GetAsync("http://api.openweathermap.org/data/2.5/forecast/daily?q=leeds&amp;type=accurate&amp;mode=xml&amp;units=metric&amp;cnt=3&amp;appid= MY AIP-KEY");
      string result = await response.Content.ReadAsStringAsync();
      var serializer = new DataContractJsonSerializer(typeof (RootObject));
      var ms = new MemoryStream(Encoding.UTF8.GetBytes(result));
      var data = (RootObject) serializer.ReadObject(ms);
      return data;
  }
  </code></pre>