Re: [Magpierss-general] Odd Feed, need help
Status: Beta
Brought to you by:
kellan
From: Alan L. <ala...@do...> - 2006-03-03 14:27:51
|
The best way to see what magpie can pull from your feed is to run it through the magpie_debug.php script that comes with the code- it will output the data it parses in its array structure (what you wrote below will certainly not work). But you have a larger problem, your feed does not validate (it lacks <rss>....</rss> tags) so Magpie is not going to be able to do much until that is fixed. Validate, validate, validate. Then parse it. http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.inman.com% 2Frss%2Fsample%2Fconsumersample.xml On Mar 2, 2006, at 5:18 PM, David Denning wrote: > Hello, > I am using magpierss .72. I have everything set up and can get > numerous feeds to work, however the feed I am creating the page for > will not work. The vendor says it has an extra body tag so we can > have full content on our site. I am not sure what I need to do to > make it work? Any Help is appreciated. > > <?php require_once('magpierss/rss_fetch.inc'); > $url = 'http://www.inman.com/rss/sample/consumersample.xml'; > $rss = fetch_rss( $url ); > > echo "Channel Title: " . $rss->channel['title'] . "<p>"; > echo "body: " . $rss->body['body'] . "<p>"; > echo "<ul>"; > foreach ($rss->items as $item) { > $href = $item['link']; > $title = $item['title']; > echo "<li><a href=$href>$title</a></li>"; > } > echo "</ul>"; > > ?> > Thanks > Dave \\ alan levine (ala...@do...) // "once geologist, now technologist" \\ maricopa community colleges, arizona // mcli web: http://www.mcli.dist.maricopa.edu/ \\ blog: http://cogdogblog.com/ |