我用来WebClient
为 Windows Phone 8 和 Android HttpClient 获取 Yahoo 数据 使用 WebClient 我可以做到
WebClient client = new WebClient();
client.DownloadStringCompleted += new DownloadStringCompletedEventHandler(client_DownloadStringCompleted);
client.DownloadStringAsync(url);
发送事件后;
StringReader stream = new StringReader(e.Result)
XmlReader reader = XmlReader.Create(stream);
reader.ReadToFollowing("yweather:atmosphere");
string humidty = reader.MoveToAttribute("humidity");
但在 Windows 8 RT 中没有这样的东西。
如何获取以下数据?> http://weather.yahooapis.com/forecastrss?w=2343732&u=c