using weather XML feed in C## DotNet - 窗口里的风景
L*r
1 楼
很多站点提供了XML feed,这样你就不需要通过分析他们的网页来得到你自己要的信息了
。
你可以直接得到XML格式的信息。
比如你想得到天气信息:
假设你的zipcode是97401,用这个试试:
http://www.weatherroom.com/xml/ext/97401
所以,给定zipcode xxxxx,你总可以通过
http://www.weatherroom.com/xml/ext/xxxxx得到你要的信息
以下是97401的天气预报
-http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.weatherroom.com">
-
Eugene, OR, United States
。
你可以直接得到XML格式的信息。
比如你想得到天气信息:
假设你的zipcode是97401,用这个试试:
http://www.weatherroom.com/xml/ext/97401
所以,给定zipcode xxxxx,你总可以通过
http://www.weatherroom.com/xml/ext/xxxxx得到你要的信息
以下是97401的天气预报
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.weatherroom.com">
-