confidentshow.com confidentshow.com
Home >> About Us >> Add Your Link >> Privacy Policy >> Terms & Conditions >> Submit Article
Search:   
Add Url
 

Policies & Law

Medical Care

Banking & Finance

Games & Play

Events & News

Software & Networking

Estate & Realty

Self Management

Fashion & Lifestyle

Cooking & Drinking

Outdoor & Sports

Society & Issues

Business & Commerce

Science & Research

Travel & Vacation

Family & Home

Automobile & Automotive

Art & Culture

Academics & Education

Online Shopping

Careers & Employment

Children & Teens

Music & Entertainment

Health & Therapy


 

Home › Events & News › RSS Newsfeeds
 

Understanding RSS - Part Nine - Rounding Out The Multi-Media - The CDATA Command

 
Author: Ted Gross
The Controversial CDATA programming construct has caused somewhat of a love-hate relationship among RSS programmers. What is CDATA? Well to put it in very easy terms, it allows us to place within the description sub-element of Item, HTML commands and language. In other words it extends the description by allowing us to create links, references and the like within what is purely a text element created to describe the item. Remember that within the Item element, the sub-element of description will look like this. <description>Here is where I describe the item in my RSS feed</description>Let us say I want to extend this piece and I wanted to get a Bold command <B> </B> or italics <I> </I>command or something else within it. Or perhaps I would want to place a break in the lines <BR>dividing it up? Or maybe I want to get more sophisticated? Let me give you an example. Remember Randy Pandy and his Perfumery at randypandy.com? Well now not only does his wife Sandy want to describe the HeavenScent Skunk Perfume but she wants a picture of the bottle with the description. So, hold on, you say. Easy as pie. Use the enclosure command. Well right and not right. Sure you can put a picture of the perfume bottle in the enclosure command, but it will NOT appear WITH the description. It will appear alone and then the user will have to read the description. So while this is GREAT for audio and video a plain visual that I want next to a description kind of gets left alone if I just put in an enclosure. So we have the description, and for the sake of all I will repeat it here. <description>Heaven Scent Perfume the Smell your lover will die for. Created especially by Skunk Perfumes it is their newest and best selling perfume on the market today. Purchase a beautifully shaped skunk bottle with this incredible perfume and get a whopping 50% off! And if you purchase over $100 we will throw in Free overnight delivery as well!</description>Okay now Sandy wants a picture to go right into that description and when the user sees the text in their aggregator they will also get a visual. Thus the CDATA command. First lets look at it in action and then we will explain. <description>[CDATA[<img border="0"src="http://www.randypandy.com/perfumes/heaven.JPG" width="138" height="180"/></a><p>Heaven Scent Perfume the Smell your lover will die for. Created especially by Skunk Perfumes it is their newest and best selling perfume on the market today. Purchase a beautifully shaped skunk bottle with this incredible perfume and get a whopping 50% off! And if you purchase over $100 we will throw in Free overnight delivery as well! </p><p>randypandy.com - All Perfumes You Can Ever desire</p> </p><br clear=all>]]</description>Notice first what we did? First we set the tag description. Then within it immediately we tell the file "Hey get ready for some good old HTML", and thus we add the [CDATA[Next we want our picture of the perfume. So for those of you who know HTML this is simple. We give it the image information. <img border="0" src="http://www.randypandy.com/perfumes/heaven.JPG" width="138" height="180"/></a> After that we continue with our description. Get in a few line breaks with either the <p> </p> or <BR> </BR> constructs. Then finally before the end we close it off with ]] tag. You can get fairly sophisticated with CDATA. The thing is many programmers do NOT like it, as it allows too many rooms for mistakes, and it is a throwback to old HTML. The purity of the XML is kind of compromised here. But it serves a purpose and allows us to get a picture with the words, which is incredibly important. Many, many RSS feeds use it, and it is a very useful tool to get the "picture" across to the user. You can combine it as well with enclosure, to get an audio out, a description, and say a picture of the Album. In other words a full media experience of text + picture + audio. Well that is it. Our next article will put it all together and give you a look at the final well formed XML file which will act as our template for rss.xml. It will lay it all out for you with a couple of items, so you can grab it and use it for your RSS feed. This Article was Part Nine of the series - RSS Mania Understanding RSS. All of this series is available at Ezine Articles (ezinearticles.com)
  1. RSS Mania Addiction - An Introduction to RSS and the Terminology
  2. Outline of How to Create an RSS Feed
  3. The Template File
  4. The Basic Elements of the Channel Element
  5. How The RSS Feed Works & Some Programming Constructs
  6. RSS Channel Sub-Elements Specifically Image & How To Use It
  7. Understanding RSS - Part Seven - The Elements Within the "Item" Element
  8. Understanding RSS - Part Eight - Podcasting, VideoCasting & The Magic of the Enclosure Sub-Element
Copyright 2005 Ted W. Gross. All rights reserved. (You may publish this article in its entirety with the following author's information with live links only.)
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.

You can search for this article using: rss feeds, rss news feeds, free rss news feeds, rss feeds news, news rss feeds, google news rss feeds
 
 
 

Related Articles

 
Hezbollah Says It Has Cells in the United States
 
A Comparison of ISLAM and CHRISTIANITY
 
The Origins of Coats of Arms
 
Google Blog Search - Another Great Reason To Have an RSS Newsletter
 
What's the Fuss About?
 
Hollywood's Influence on the Masses
 
7 Ways to Use Website Audio in Your Marketing Arsenal
 
RSS Feeds Have Revolutionized the Internet
 
Internet Radio Broadcasting - What's the Best Bitrate
 
Are Free Trade Agreements (FTA) Always Good For Both Countries Involved?
 
 
 
 

Challenging False Prophets

Noam Chomsky, professor of linguistics at MIT, was voted the top public intellectual in the world in ... - Matt Donnelly
 

About Spain, Marbella, and The King

Marbella is situated on the south coast of Spain; La Costa de Sol. It is one of the most distinguish ... - Hans Bool
 

Why Iran needs nuclear weapons

The foreign policy objectives of nuclear armament are clear to all. Iran is in such a a position tha ... - Alex Kituli
 
 

Politics: The Corruption Curve

In a world where hereditary monarchies are an anachronism, the most absolute power lies in the polit ... - Virginia Bola, PsyD
 

Business: "Where Is America Headed To?", New York Millionaire Wonders

Hello! May you live a long healthy life and prosper. - I-key Benney
 

Your Guide to Museums, Galleries, Theaters

Looking at art pieces and famous paintings by world renowned artists and painters can change the way ... - Dakota Caudilla
 

The Divided Language

Takes a look at the differences between American English and British English. Reading this article m ... - Brendan Ryan and Lee Carter, Russell Turner, Barry Hudson
 

Pop Goes the Weasel

Karma. - Sharon Wilson
 
 
   Home >> Privacy Policy >> Terms & Conditions
© 2008 www.confidentshow.com All Rights Reserved.