QT怎么获取网页内容
1个回答
展开全部
试试这个方法:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
<channel>
<title>Yahoo! Weather - Error</title>
<description>Yahoo! Weather Error</description>
<item><title>City not found</title><description>
Invalid Input /forecastrss
</description></item></channel></rss><!-- api1.weather.sg1.yahoo.com uncompressed/chunked Mon Sep 19 01:12:56 PDT 2011 -->
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
<channel>
<title>Yahoo! Weather - Error</title>
<description>Yahoo! Weather Error</description>
<item><title>City not found</title><description>
Invalid Input /forecastrss
</description></item></channel></rss><!-- api1.weather.sg1.yahoo.com uncompressed/chunked Mon Sep 19 01:12:56 PDT 2011 -->
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询