shallowbridge.com shallowbridge.com
   Site Home >> About Us >> Privacy >> Terms of Service >> Add Your Link >> Submit Article
Search:   
Add Url
 

Society & Communities

Estate & Realty

Self Enhancement

Home & Garden

Art & Creative

Medical Care

Shopping Online

Lifestyle & Fashion

Sports

Jobs & Careers

Events & News

Music & Entertainment

Policies & Law

Academics & Learning

Food & Recipe

Online & Board Games

Hygiene & Health

Companies & Business

Automobiles

Finance & Banking

Children & Teens

Travel & Vacation

Research & Science

Software & Networking


 

Site Home –› Events & News –› RSS Newsfeeds
 

The RSS Feed - The Template File (Part Three of the Series on RSS)

 

Okay now roll up your sleeves, close the door, take the phone off the hook and get ready. You are going to begin to create an RSS feed. To Recap we have on the drawing board:

  1. What you want to go into the feed

  2. Patience

  3. A place to put it up on the net

  4. Patience

  5. A small smattering of technical knowledge

  6. Patience

The very first thing we need to do is understand the makeup of our "rss.xml" file. Well actually the very first thing we need to do is get a template to understand the makeup. We will go from the simple to the more complicated, so don't get stressed.

First point to remember. The template below does NOT include all possible options and/or variations. We will go from simple to complex. And I do not expect anyone to be able to get all the possible permutations at one shot. What we are simply trying to do is explain the layout so you can get the schema into your head and understand the various possibilities.

Of course if you are really into discovering all the techie jargon and possibilities about XML I suggest to start off at: http://www.feedvalidator.org/docs/rss2.html. This will lead you slowly and surely into the possibilities of RSS template creation and all its permutations.

If you are a "techie" or the inner workings of HTML and XML are not a mystery to you, then the template below will be fairly self-explanatory. However, if you are new to the world of XML and especially RSS then it would be a good idea to take the few minutes to study this template and all the explanations.

One of the points to remember is that if you do a Google or Yahoo search for "RSS templates" or something along that line you will come up with a great many articles. Unfortunately, most of those articles are written on a level that demands you have some expertise in these areas. Below I am going to try and explain in "layman" terms what each entry means.

XML has its own markup language. All the commands like HTML are enclosed in <> as you can see below. Some commands demand that the "command" or "code" be placed between the < opening and the ending > such as the first line in the template:

<?xml version="1.0" encoding="utf-8"?> Other commands demand a beginning and an end marker such as <item> </item>. As in HTML the marker with the / (slash) such as </item>tells XML you are at the end of the entry marked as <item>.

Okay first the Template then we will begin to divide it up.

<?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type='text/css' > <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>" "</title>
<description>" "</description>
<copyright>" "</copyright>
<link>" "</link>
<language>" "</language>
<lastBuildDate>" "</lastBuildDate>
<image>
<title>" "</title>
<width></width><height></height>
<link></link>
<url></url>
</image>
<item>
<title></title>
<link></link>
<dc:creator></dc:creator>
<pubDate></pubDate>
<description></description>
</item>
</channel>
</rss>

Don't get scared. It really is not as difficult as it looks. Okay now I did promise "layman" terms so here goes. Lets divide this template up into THREE sections.

Section One - Heading XML Section

<?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type='text/css' > <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> This section tells the reader/parser/file just what the file is. In effect without too much detail at the moment it announces to the world: "Hello. I am an XML file and I adhere to the RSS XML template version 2.0 as proposed at http://purl.org/dc/elements/1.1/." (Well it means a lot more and a lot less but that is good enough for now.)

Now for the next parts. It is a linear table as usually all logic in computers is. This is not the place to get into arguments of logical systems however we do think in a linear format. So there are two parts.

  1. Define the Channel

  2. Define each item in the channel

What is a Channel? Well lets look on it as how you choose to define the information you are going to put into the file. For instance if you are putting out an RSS file to get people to look at your Web Site which has information about and sells Perfume, your channel would be that. Thus the title would read: .

As you can see from the template above the channel is defined by the following parameters.

<channel>
<title>" "</title>
<description>" "</description>
<copyright>" "</copyright>
<link>" "</link>
<language>" "</language>
<lastBuildDate>" "</lastBuildDate>
<image>
<title>" "</title>
<width></width><height></height>
<link></link>
<url></url>
</image>

(Remember if you look at the bottom of the file you will find the end Channel marker which is of course

</channel>.

Now the next level as we drill down is the item (items within the channel).

<item>
<title></title>
<link></link>
<dc:creator></dc:creator>
<pubDate></pubDate>
<description></description>
</item>

Again each item will have a title. The item title here may be:

As you can see the file follows a logical template drilling down from:

  1. XML lines - "Hello World I am an XML file"

  2. Channel - "Hello World. This is my Channel and the overall topic we will be discussing in the Channel." (and all the info you want to give on it.)

  3. Item - "Hello World. I am an item in the above channel. Here is my information, my pictures, my source and where you can find me."

And remember at the end you will need the closing for both Channel and RSS:

</channel>
</rss>

If you are an author or writer think of it like this:

  • XML Lines describe the genre - Say "Hello World This is a book on fantasy"

  • Channel Line describes the book - Say "Hello World this is a book whose title is "Randy Pandy's Perfumery"

  • Item Lines describe each chapter. "Hello World this is a chapter "Seduction - The Perfect Unisex Scent"

Don't get worried yet. I am not going to leave you high and dry. In my next article I will teach you how to fill out each item in the Channel and Item declarations. When we are done with that, you should be able to create a fairly decent XML file and template.

This is a continuation from my articles on RSS

  • Part One - "RSS Mania Addiction - An Introduction to RSS and the Terminology"

  • Part Two - Outline of How to Create an RSS Feed"

Author: Ted Gross
 
Author Bio:

Ted Gross

Ted Gross was born and raised in New York City and in 1978, moved to Israel, and currently resides in Jerusalem.

He began his writing career in University as the op-ed editor of the University paper and wrote a series of eight editorials during that year. While in Israel, he wrote two children's books. "The Letter & The Crown"; was published in Israel, while the second, and more successful, was published in the United States by United Synagogue entitled, "Of Rabbit's Wool & Camel's Hair". While teaching comparative religion, he also had articles on polemics and religion published in Midstream Magazine.

However, by the time the children's books were published his family was growing, and he began work and was active in high tech from 1985 until 2001. There he functioned as a CTO ? Chief Technological Officer ? in three different companies, managing to take two companies from start-up phase to a buyout and a successful IPO respectively.

After having taken the last company to a successful IPO, six children and a peaceful divorce, it was time to leave high-tech and try and develop some ideas in writing. At that point, Israel embarked on "Operation Defensive Shield", and since Ted is a reserve battlefield medic, he ended up in Jenin, and the battles that took place there became front-page news all over the world. "Three Weeks In Jenin" was written soon after, though unfortunately the contract was cancelled once the United States entered into its current war with Iraq. However, an independent movie producer, did do a documentary on Ted's experiences as a medic in Jenin.

He currently is working on the "Chronicles of the Children of Heaven" (a fantasy work), on another non-fiction book entitled "Last Times" and on a cooking book entitled "Help! I Have A Fire In My Kitchen", (as well as short stories and poetry from time to time). To make ends meet, Ted owns a real-estate investment firm in Jerusalem and Virgin Earth Article Submissions.

Examples of Ted's work can be found on his web site.

Usually one can find Ted either putting out fires in his kitchen, drinking coffee in a cafe musing about the great "what-ifs" of life, assistant coaching little league baseball, dealing with one of his six children, having a fight with his sister, or walking the byways of Jerusalem with Rainbow, his golden retriever, pondering the silence of the heavens.

This article can be searched using: rss feeds, rss news feeds, free rss news feeds, rss feeds news, news rss feeds, google news rss feeds
 
 
 

Related Articles

 
Conserving Water, Saving Civilization and Washing Cars Too
 
Mexican Illegal Immigration is Nothing, in the Future What About China?
 
The Rising Risk of a Terrorist Attack - Could It Happen Today?
 
Intelligent Design of Mankind or Random Chaos of Evolution
 
Lessons Still Not Learned; Hamas and Hezbollah
 
Life - The Essence of Mind
 
Immigration Woes, Part Three
 
Americans Need To Know: Devastation Is At Hand!
 
Government Backed Fraud in Academia
 
I am a Christian You Can Trust Me!
 
 
 
Site Home >> Privacy >> Terms of Service  
Copyright © www.shallowbridge.com - All Rights Reserved Worldwide.