A Brief Tour Of RSS 1.0
RSS (previously stood for Rich Site Summary developed by Netscape, but now refers to RDF Site Summary, an updated and XML-compliant version of the Netscape technology) is an XML document format intended to describe, summarize, and distribute the contents of a Web site as a 'channel'. Sites such as MoreOver.com and O'Reilly's Meerkat process RSS feeds provided by news and other content sites and provide combined headline newsfeed services. RSS is currently developed by the RSS-DEV Working Group.
As with most XML document formats, the meaning of the document can be gleaned fairly easily simply by looking over a sample document. SitePoint.com provides summaries of its front-page articles in RSS format at http://www.sitepoint.com/rss.php. If you are using Internet Explorer 5 or later, you can view the current version of this XML document directly in your browser. For everyone else, here is the current SitePoint.com RSS file at the time of this writing:
xmlns="http://purl.org/rss/1.0/">
http://www.sitepoint.com/
While this practice can speed up a search, users might not see your
most recent site updates! Ralph shows how you can stop search engines
caching your pages.
http://www.PromotionBase.com/article/551
your site without learning JavaScript! Matt explains the creation of
JavaScript effects in Fireworks, and explores in detail the use of
this program's tools.
http://www.WebmasterBase.com/article/541
your mailing list. Now what? How do you communicate effectively, and
turn them into customers? Jason reveals all...
http://www.eCommerceBase.com/article/552
design, build or maintain your Websites. Ivan explains the necessity
of contracts to those who work on the Web.
http://www.eCommerceBase.com/article/505
this year's Search Engine Strategies conference. He outlines the
discussions and predictions of industry leaders.
http://www.PromotionBase.com/article/556
tough questions with Lee, as he guides you through a simple process
to optimize your ecommerce strategy.
http://www.eCommerceBase.com/article/508
As you can see, the file begins with a
Now, since most Web browsers can't read XML pages and the browsers that can only display the code of the page (Internet Explorer 5+) or the textual portions of the page (Netscape 6+) by default, you need some intermediate technology to convert this RSS document into something presentable if you want to display it to users. Other possibilities include reading the file and storing the headlines into a database, or emailing subscribed users if particular keywords appear in the descriptions of new articles. In any case, you're going to need something that can read XML. Of the many options available in this arena, this article will examine the use of PHP to parse an XML document.
Friday, March 21, 2008
PHP and XML: Parsing RSS 1.0
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment