RSS接触 - RSS中的XML文档

本文档提供了LiftoffNews频道的RSS源示例,其中包括频道的总体信息和两条关于太空探索的新闻摘要,分别涉及美国宇航员在俄罗斯StarCity的文化与语言培训,以及欧洲、亚洲部分地区将观测到的日偏食现象。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

整个文档的格式为(摘自百度百科):

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0">
    <!-- 以下为频道信息及新闻列表 -->  
    <channel>
        <!-- 频道总体信息:开始 -->  
        <!-- 频道标题 -->   
        <title>Lift Off News</title>  
        <!-- 频道链接的总地址 -->  
        <link>http://liftoff.msfc.nasa.gov/</link>   
        <!-- 频道描述文字 -->  
        <description>Liftoff to Space Exploration.</description>
        <!-- 频道使用的语言(zh-cn表示简体中文) -->
        <language>en-us</language>  
        <!-- 频道发布的时间 -->   
        <pubDate>Tue, 10 Jun 2003 04:00:00 GMT</pubDate>  
        <!-- 频道最后更新的时间-->   
        <lastBuildDate>Tue, 10 Jun 2003 09:41:01 GMT</lastBuildDate>
        <docs>http://blogs.law.harvard.edu/tech/rss</docs>  
        <!-- 频道生成器 -->
        <generator>Weblog Editor 2.0</generator>
        <managingEditor>editor@example.com</managingEditor>
        <webMaster>webmaster@example.com</webMaster>  
        <ttl>5</ttl>   
        <!-- 频道总体信息:结束 -->  
        <!-- 每条RSS新闻信息都包含在item节点中, -->  
        <item>
            <!-- 新闻标题 -->  
            <title>Star City</title>   
            <!-- 新闻链接地址 -->  
            <link>http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp</link>  
            <!-- 新闻内容简要描述 -->  
            <description>How do Americans get ready to work with Russians aboard the   International Space Station? They take a crash course in culture, language   and protocol at Russia's Star City.</description>   
            <!-- 新闻发布时间 -->   
            <pubDate>Tue, 03 Jun 2003 09:39:21 GMT</pubDate>  
            <!-- 新闻目录 -->   
            <category>IT</category>   
            <!-- 新闻作者 -->  
            <author>bill</author>  
            <guid>http://liftoff.msfc.nasa.gov/2003/06/03.html#item573</guid>
        </item>  
        <item>
            <title>Space Exploration</title>  
            <link>http://liftoff.msfc.nasa.gov/</link>
            <description>Sky watchers in Europe, Asia, and parts of Alaska and Canada   will experience a partial eclipse of the Sun on Saturday, May 31st.</description>
            <pubDate>Fri, 30 May 2003 11:06:42 GMT</pubDate>   
            <guid>http://liftoff.msfc.nasa.gov/2003/05/30.html#item572</guid>    

        </item> 
    </channel>  
</rss>

转载于:https://www.cnblogs.com/liszt/archive/2011/04/12/2013123.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值