我想从http://www.google.com/ig/api?weather=
我用这个得到天气
// load xml result from Google weather
var addr = WebUtility.HtmlEncode("http://www.google.com/ig/api?weather=vilnius&hl=lt");
XDocument xd = XDocument.Load(addr);
// navigate to current conditions node
var current_conditions = from currentCond in xd.Root.Descendants("current_conditions")
select currentCond;
// navigate to Forecast info node
var forcastInfo = from forecastinfo in xd.Root.Descendants("forecast_information")
select forecastinfo;
我使用 urlhttp://www.google.com/ig/api?weather=vilnius&hl=lt
但信息是英文的,我找不到问题请帮忙:)