Rss Feed Java MVC

时间:2010-06-03 21:59:28

标签: java rss

我想为我的网站创建一些RSS源。我设法创建了XML文件,但是

如何以漂亮的格式显示它,如

http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml

如何在网址框中创建小图标?

就像我的XML文件一样

    <?xml version='1.0' encoding='UTF-8'?>
<rss version="2.0">
    <channel>
        <title>title</title>
        <description>desciption</description>
        <link>LINK</link>
        <dateCreated>2010-05-31 00:00:00.0</dateCreated>
        <language>Italian</language>
        <item>
            <title>pojpoj</title>
            <description>pojpojpoj</description>
            <link>ojpojpoj</link>
            <dateCreated>2010-06-03 00:00:00.0</dateCreated>
            <pubDate>2010-06-03 00:00:00.0</pubDate>
        </item>
        <item>
            <title>dfojp</title>
            <description>pojpojpoj</description>
            <link>pojpoj</link>
            <dateCreated>2010-06-03 00:00:00.0</dateCreated>
            <pubDate>2010-06-03 00:00:00.0</pubDate>
        </item>
    </channel>
</rss>

由于

1 个答案:

答案 0 :(得分:0)

有问题的BBC Feed使用XSL样式表来转换XML - &gt;浏览器显示HTML时的HTML。

来自Feed:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<?xml-stylesheet title="XSL_formatting" type="text/xsl" href="/shared/bsp/xsl/rss/nolsol.xsl"?>