Are you a Google Analytics enthusiast?
Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE!

www.CustomReportSharing.com
From the folks who brought you High Rankings!
More SEO Content
Xml Feed
#16
Posted 25 February 2004 - 04:05 PM
Seems so old fashioned to have to get some kind of reader. Why do people bother? I just can't wrap my head around the whole RSS stuff!
#17
Posted 25 February 2004 - 05:52 PM
My thoughts entirely!
Why would I want to use RSS when I can use the actual web sites of the RSS providers?
Cheers
James
#18
Posted 25 February 2004 - 07:02 PM
Using RSS feeds in especially a standalone reader you can browse through, scan, the latest additions to tens of sites in minutes. Just browsing from site to site would already take longer.
I'm a heavy Outlook user and love Newsgator which intergrates with it. Excellent combo.
My take on it, as published on site.
Ruud
Edited by Ruud, 25 February 2004 - 07:09 PM.
#19
Posted 26 February 2004 - 06:24 PM
I have been putting this RSS, XML, feeder thingy, off for ages because it required me to exert my few remaining braincells.
One type, you download to your desktop, feed in the code (or whatever - I haven't got that far yet) and when you log onto the net and let it run, it collects your newsfeeds for you; right to your desktop.
The other type, is an online News Aggregator. This works by collecting the newsfeeds for you but instead of bringing it to your desktop, you have to be logged into the News Aggregator website.
Just in case anyone is as baffled by all this RSS, XML stuff as I am.
McF
#20
Posted 26 February 2004 - 06:32 PM
Example: I want to make a "news" page for my website and I'd like to use RSS feeds to populate it. I found some stuff that would but it's all clunky or expensive.
Come on! I'm not a programmer but this can't be *that* hard, can it?
Ian
#21
Posted 26 February 2004 - 06:40 PM
Ruud
#22
Posted 26 February 2004 - 06:46 PM
Nice and thanks again!
G.
#23
Posted 27 February 2004 - 03:34 AM
Magpie does RSS1 and most of RSS 2. But tags withing tags within tags is hard for it. So for custom feeds like Amazon or coupon's it isn't the best thing. Apart from that - rocks. With caching and header check it's easy on the bandwidth as well. Can't be made much faster either.
Ruud
#24
Posted 27 February 2004 - 09:46 AM
echo "<p class=\"bodymd\">RSS Feed: $rss_feed</p>";
$insideitem = false;
$tag = "";
$title = "";
$description = "";
$link = "";
function startElement($parser, $name, $attrs) {
global $insideitem, $tag, $title, $description, $link;
if ($insideitem) {
$tag = $name;
} elseif ($name == "ITEM") {
$insideitem = true;
}
}
function endElement($parser, $name) {
global $insideitem, $tag, $title, $description, $link;
if ($name == "ITEM") {
printf("<p class=\"bodymd\"><a href=\"%s\" target=\"_blank\">%s</a></p>",
trim($link),htmlspecialchars(trim($title)));
// printf("<dd>%s</dd>",htmlspecialchars(trim($description)));
$title = "";
$description = "";
$link = "";
$insideitem = false;
}
}
function characterData($parser, $data) {
global $insideitem, $tag, $title, $description, $link;
if ($insideitem) {
switch ($tag) {
case "TITLE":
$title .= $data;
break;
case "DESCRIPTION":
$description .= $data;
break;
case "LINK":
$link .= $data;
break;
}
}
}
$xml_parser = xml_parser_create();
xml_set_element_handler($xml_parser, "startElement", "endElement");
xml_set_character_data_handler($xml_parser, "characterData");
$fp = fopen("$rss_feed","r") or die("Error reading RSS data.");
while ($data = fread($fp, 4096))
{
xml_parse($xml_parser, $data, feof($fp))
or die(sprintf("XML error: %s at line %d",
xml_error_string(xml_get_error_code($xml_parser)),
xml_get_current_line_number($xml_parser)));
}
fclose($fp);
xml_parser_free($xml_parser);Not really prepared to walk through it line by line, but if you are familiar with PHP and the RSS doc's layout, you should be able to make some sense of it.
#25
Posted 27 February 2004 - 10:12 AM
So for custom feeds like Amazon or coupon's it isn't the best thing.
No, because "custom feeds" aren't RSS.
G.
#26
Posted 27 February 2004 - 10:16 AM
function startElement($parser, $name, $attrs) {
global $insideitem, $tag, $title, $description, $link;
if ($insideitem) {
$tag = $name;
} elseif ($name == "ITEM") {
$insideitem = true;
}
} It is all so clear now McF
#27
Posted 27 February 2004 - 10:24 AM
#28
Posted 27 February 2004 - 10:57 AM
G.
#29
Posted 27 February 2004 - 10:58 AM
It has been a specific request from RSS 2 creator Dave Winer to not make up other versions of RSS.
So, instead, Atom is brought into the world. You can read more about this motivation behind the project on their motivation page.
Ruud
#30
Posted 27 February 2004 - 11:17 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users








