1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

JavaScript Rss !!!!?

Discussion in 'Web Development' started by djwilson, Oct 8, 2008.

  1. djwilson

    djwilson New Member

    Hi,

    i need to add .xml and RRS to my site

    currently
    www.liveyoutubedjs.site50.net

    going to be
    www.youtubedjchannel.com (redirecting at the moment)

    how do i get RRS and .XML as well as it glowing on the top of IE just under the address bar


    need all the help i can get please!!!

    thanks
     
  2. vareside

    vareside New Member

    First, you have to write an RSS feed (in XML format) on your own. This is working in the following way:

    Code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel xmlns:cfi="http://www.microsoft.com/schemas/rss/core/2005/internal">
    
    <title>TITLE OF MY RSS FEED</title>
    <link>http://www.example.com/</link>
    <description>ADD A DESCRIPTION OF YOUR WEBSITE HERE</description>
    <language>en</language>
    
    <item>
    <title>TITLE</title>
    <description>DESCRIPTION</description><image><url>URL</url></image>
    <link>URL</link>
    <category>CAT</category>
    </item>
    <item>
    <title>TITLE2</title>
    <description>DESCRIPTION2</description><image><url>URL2</url></image>
    <link>URL2</link>
    <category>CAT2</category>
    </item>
    
    </channel>
    </rss>
    Above you can see the content of a simple feed.xml file. Just change the text parts to your needs. Then, so that the browser recognizes it, you have to add the following part into the HEAD-area of your web page and enter the path to the feed:

    Code:
    <link rel="alternate" type="application/rss+xml" title="RSS" href="http://www.example.com/feed.xml">
     
  3. djwilson

    djwilson New Member

    do i add the second code on the .xml page?
     
  4. vareside

    vareside New Member

    The first code is for the xml document. The second code is for the html page.
     
  5. djwilson

    djwilson New Member

    ok thanks.