以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 XML在软件工程中的应用 』  (http://bbs.xml.org.cn/list.asp?boardid=6)
----  [求助]  (http://bbs.xml.org.cn/dispbbs.asp?boardid=6&rootid=&id=67721)


--  作者:skyyks
--  发布时间:9/27/2008 3:19:00 PM

--  [求助]
我有这样一个xml文件,通过怎样的c程序能够过滤出其中description中的内容呢?有哪位高人指点一下呀!最好有实例程序哈!感激不仅!
<?xml version=1.0 encoding=ISO-8859-1 ?>
<rss version=2.0 xmlns:dc=http://purl.org/dc/elements/1.1/>
<channel>
<title>Weather at Chicago / Waukegan, Waukegan Regional Airport, IL - via NOAA's National
Weather Service</title>
<link>http://www.weather.gov/data/current_obs/</link>
<lastBuildDate>Sat, 28 Jul 2007 16:32:11 UT</lastBuildDate>
<ttl>60</ttl>
<description>Weather conditions from NOAA's National Weather Service.</description>
<language>en-us</language>
<managingEditor>robert.bunge@noaa.gov</managingEditor>
<webMaster>w-nws.webmaster@noaa.gov</webMaster>
<image>
<url></url>
<title>NOAA - National Weather Service</title>
<link>http://www.weather.gov/data/current_obs/</link>
</image>
<item>
<title>Overcast and 73 degrees F at Chicago / Waukegan, Waukegan Regional Airport, IL</title>
<link>http://weather.noaa.gov/weather/current/KUGN.html</link>
<description>
<![CDATA[
<img src=http://weather.gov/weather/images/fcicons/ovc.jpg class=noaaWeatherIcon width=55
height=58 alt=Overcast style=float:left; /><br />
))>
Winds are Northeast at 13 Gusting to 21 MPH. The pressure is 29.98 (1014.1 mb) and the humidity
is 81%. The heat index is 73. Last Updated on Jul 28, 10:52 am CDT.
</description>
<guid isPermaLink=false>Sat, 28 Jul 2007 10:52:00 -0500 CDT</guid>
</item>
</channel>
</rss>

W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
31.250ms