Name
mod_company
Synopsis
mod_company
allows RSS
feeds to deliver business news metadata. Like
mod_audio
, this is another example of RSS 1.0
stretching the bounds of RSS functionality; this module could lead to
RSS being used as a specialist business news vehicle rather than just
a generalized list of links.
Namespace
mod_company
takes the
namespace prefix
company
: and is identified by the URI
http://purl.org/rss/1.0/modules/company
. By now
you’ll realize that this means the root element of a
RSS 1.0 document containing mod_company
will
resemble this:
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://purl.org/rss/1.0/"
xmlns:company="http://purl.org/rss/1.0/modules/company/">
Elements
mod_company
provides four elements, all of
which are subelements of item
. None of them are
defined as mandatory, but there’s little hassle and
much reward in including all of them.
-
company:name
The name of the company.
-
company:symbol
The ticker symbol of the company’s stock.
-
company:market
The abbreviation of the market in which the stock is traded.
-
company:category
The category of the company, expressed using the Taxonomy module. For more details, see mod_taxonomy later in this chapter.
Example
Example 7-7. mod_company being used within an item
<item rdf:about="http://www.example.com/financial_news/00001.html"> <title>Cisco Stock moves either up or down!</title> <description>A brief story about a thing happening today</description> <link>http://www.example.com/financial_news/00001.html<link> ...
Get Content Syndication with RSS now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.