sn0wy
sn0wy

Reputation: 69

RSS feed to external

I am looking for a way to set up my own RSS feed. I want to be able to post something on my website (either locked to me, or via notepad), but I also want it to post this feed onto facebook and twitter.

Is there a novice way to set this up, or is this a feat better resolved by purchasing some software?

My bad attempt at setting up an rss feed that I would update by notebook is as follows (though I haven't got this working as temporarily intended):

<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">


<channel>
    <title>First post title</title>
        <link>http://www.mysite.com</link>
    <description>I'm posting a lot of words to fill in this space for my first potential rss feed, let's hope it works!</description>
        <atom:link href="http://www.mysite.com" rel="self" type="application/rss+xml" />

<item>
    <title>Or maybe this is the first title</title>
    <link>http://www.mysite.com/page.html</link>
    <pubDate>Mon, 03 Dec 2012 16:50:32</pubDate>
    <guid isPermaLink="true">http://www.mysite.com/page.html</guid>
    <description>This is potentially the first post or perhaps the second post of the new feed being create.<description>
</item>


</channel>
</rss>

Upvotes: 1

Views: 166

Answers (1)

PassKit
PassKit

Reputation: 12591

Your feed has a couple of issues, namely an invalid date and a missing closing tag for the item description. Try the following:

<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>

    <title>First post title</title>
    <link>http://www.mysite.com</link>
    <description>I'm posting a lot of words to fill in this space for my first potential rss feed, let's hope it works!</description>
    <atom:link href="http://www.mysite.com" rel="self" type="application/rss+xml" />

    <item>
      <title>Or maybe this is the first title</title>
      <link>http://www.mysite.com/page.html</link>
      <pubDate>Mon, 03 Dec 2012 16:50:32 GMT</pubDate>
      <guid isPermaLink="true">http://www.mysite.com/page.html</guid>
      <description>This is potentially the first post or perhaps the second post of the new feed being create.</description>
    </item>

  </channel>
</rss>

If you are creating feeds manually, then you can validate your markup with the W3C Feed Validator.

There are many ways you could automate this but impossible to provide a recommendation without knowing how you are currently generating your website content.

Upvotes: 2

Related Questions