Home > Articles > Web Services > XML

RSS 101

Have you ever wondered what those XML and RSS icons on a web page mean? Have you ever been asked to aggregate somebody? Do you have too many blogs to read and no way to organize them? If you've answered yes to at least one of these questions, take a look at Bob Reselman's article on the fundamentals of RSS for the answers.
Like this article? We recommend

Blogging, formally known as web logging, is becoming as pervasive as email. These days it seems as if everybody—from worldwide news services to soccer moms and dads—has a blog. Newspapers and magazines with an online presence use blogging technology to publish the work of its journalists. Individual users employ blogs as a personal publishing tool to post online diaries, essays, poetry, humor, and special-interest topics. Blogging is here to stay!

With everybody blogging on a daily basis, there is a lot of interesting information being generated. Yet how is one to keep track of everything and find what's important? If you are interested in only one or two blogs, making a visit to the blog's web site each day and reading what is posted is a reasonable thing to do. But what do you do if you are interested in 10 blogs or 20 blogs? Clearly, keeping track of all those blogs can become a laborious, time-consuming activity. Wouldn't it be nice if there were a way to keep a list of your favorite blogs and be automatically notified when a new entry is made? This is where RSS comes in.

RSS (Really Simple Syndication) is a protocol that allows bloggers to publish their information in a standardized format that can be read by a special type of software called an RSS Aggregator (a.k.a a news reader). An RSS Aggregator understands the structure of RSS and can present a particular blog in very much the same way that your email reader presents your email. Most RSS Aggregators contain a window that lists a brief summary line, telling you the subject of the blog entry and the time posted. Then if you want to read the entire blog entry, you select the summary to see the complete contents of the post. Thus, you can keep track of many blogs, selecting only the specific blog item that you find to be of interest.

Figure 1

Figure 1 An RSS Aggregator allows you to keep track of a number of blogs and notifies you when a blog has been updated.

Given that blogs are here to stay, knowing a thing or two about RSS technology can be quite useful. In this article I will give you a brief overview of the RSS protocol, tell you how it relates to XML, and show you how to set up your blog so that it supports RSS. Then I'll walk you through the steps of setting up typical RSS Aggregators to keep track of a variety of blogs. Lastly I'll offer some suggestions as to how you and your organization can benefit from using blogs.

I'll assume that you have an operational understanding about the structure of email and using email on an email reader. Also, I assume that you have heard about blogging and may have read a blog.

All the XML that You Need to Know

The RSS format is based on XML, Extensible Markup Language. So to understand RSS you need to have a fundamental knowledge of XML.

XML is a markup language similar to HTML, the language that is used to render web pages in your browser. HTML works by using "tags" to describe how a set of characters should be presented on a web page. For example, the HTML code will present the words Hello World in bold face type:

<b>Hello World</b>

The tag set, <b></b> tells the browser that the characters that come after the "start tag" <b> and before the "end tag" </b> are to be made bold. The important thing to understand is that in a tag set, a "begin tag" takes the form <tag_name> and "end tag" takes the form </tag_name>, where tag_name is the name of the tag. The HTML standard has a number of predefined tag sets. (Tag sets are also referred to as elements.) Table 1 shows some examples of a few common HTML tags.

Table 1: Examples of Common HTML Tags

Begin Tag

End Tag

Description

<b>

</b>

Bold

<i>

</i>

Italic

<p>

</p>

Paragraph

<br />

End tag is included in the begin tag

Line break

Note that the last entry in Table 1, the <br /> tag, does not have an end tag because the tag represents a line break. HTML that is coded like this:

A line.<br /> Another line.

will be displayed in the browser this way:

A line
Another line.

A line break is a stand-alone HTML tag. It does not format any characters. In cases of stand-alone tags, HTML allows you to combine a set of begin and end tags by using the </> format.)

The begin tag-end tag structure is a fundamental building block of XML, which allows you to use the tag structure to create your own elements. Whereas in HTML the tag structure is used to define how a set of characters is displayed, in XML the tags allow you to describe something about the characters in a more abstract fashion. For example, let's say that you have a set of characters Bob Reselman. You can use XML to describe that the characters Bob are something we call a first name and the characters Reselman are something that we call a last name. Listing 1 shows you how to make this description in XML.

Listing 1: Two simple XML elements.

<first_name>Bob</first_name>
<last_name>Reselman</last_name>

We could also describe first name and last name as shown in Listing 2.

Listing 2: Two more simple XML elements.

<firstName>Bob</firstName>
<lastName>Reselman</lastName>

Please be advised that the only standard in play here is the <tag_name></tag_name> specification. XML has no defined way to describe a first name or a last name. I simply made the tag names up. That the characters between <first_name></first_name> and <firstName></firstName> are a first name is because I say that they are.

Let's take the elegance of XML one step farther. The XML in Listing 1 and Listing 2 indicate that there two elements in play. One is an element that describes a first name, and the other is an element that describes a last name. However, there is nothing in the XML structure that indicates that these elements are part of an entire name structure. Grouping elements together is easy in XML. XML allows me to group elements together by nesting elements within elements. Please take a look at Listing 3. An XML document must have only one base tag that includes all other tags. The tag writer_name is the base tag for this XML document.

Listing 3: You group elements together in XML by nesting them within a tag.

<writer_name>
<first_name>Bob</first_name>
<last_name>Reselman</last_name>
</writer_name>

In Listing 3, you can see that the elements <first_name>Bob</first_name> and <last_name>Reselman</last_name> are placed within the element <writer_name></writer_name>.

What XML is saying is that there is an element writer_name, and it is made up of two subsidiary elements: first_name and last_name

What is very cool about XML is that it is a self-describing language. In other words, all you need to really understand to make sense of an XML structure are three rules: (1) tags take the form <></>; (2) you can nest tags; (3) an XML document must have only one base tag set that is not a subsidiary of any other tag, but includes all other tags. Please take a look at Listing 4.

Listing 4: A more complex XML structure.

<speeding_ticket>
<ticket_number>87849934541</ticket_number>
<officer>
<first_name>Jim</first_name>
<last_name>Smith</last_name>
<badge_number>11295</badge_number>
</officer>
<offender>
<first_name>Mike</first_name>
<last_name>Jones</last_name>
<drivers_lic_number>457-111-1478</drivers_lic_number>
<state>MA</state>
</offender>
<vehicle>
<make>Nissan</make>
<model>Altima</model>
<year>2001</year>
<plate_number>WSP-987</plate_number>
<state>WA</state>
</vehicle>
<speed>80</speed>
<date>July 8, 2004</date>
<time>16:30</time>
<location>
<street>Sunset Blvd.</street>
<cross_street>La Cienega Blvd</cross_street>
<city>Los Angeles</city>
<state>CA</state>
<zip>90027</zip>
</location>
</speeding_ticket>

Using only the three XML rules described above, we can figure out the following about Listing 4.

The XML structure describes a thing called a speeding ticket.

The speeding ticket element is made up of elements:

Ticket Number

Officer

Offender

Vehicle

Location

Date

Time

Speed

An Officer element has a:

First Name

Last Name

Badge Number

An Offender element has a

First Name

Last Name

Drivers License Number

State

A Vehicle element has a:

Make

Model

Year

Plate Number

State

A Location element has a

Street

Cross Street

State

Zip

Thus, to turn the XML above into friendly language we can say:

On July 8, 2004 at 2:30 PM, Officer Jim Smith, badge number 11295, issued speeding ticket number 87849934541 to Mike Jones, driver's license number 457-111-1478, issued in Massachusetts. Mr. Jones was driving a 2001 Nissan Altima with Washington plates numbered WSP-987. The ticket was issued on the corner of Sunset Blvd and La Cienega Blvd in Los Angeles, CA. Mr Jones was driving at 80 MPH.

As you can see, XML can describe a lot of information by using not a lot of rules. What's even nicer is that most browsers can read XML and display it in a hierarchical fashion, as shown in Figure 2.

Figure 2

Figure 2 Most modern web browsers show XML data in a hierarchical display.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020