View Full Version : Tools for formatting XML feed


laiwa
09-09-2004, 01:05 PM
Hi, I m new to XML and now I have to format a XML feed to my web pages. I know enough about the stuff to work with it but is there any good tools for formatting. I have quickly looked at the functionality provided with PHP 5 but I think I need to study that a bit more if I want to work with it.
Is the best way to go for some programs or tools for formatting or is it better to do it with PHP5, I know I should say what I want to do but its not to complicated at this stage, just turn the XML into HTML that can be displayed on the site.
Is it complicated or am I just making it so?
Can anyone recommend an article or text about how to display the feed on the site.

mobilebadboy
09-09-2004, 01:21 PM
laiwa, I use magpie RSS (http://magpierss.sourceforge.net) to parse XML/RSS and find it nice and very easy to use. I've used it on past sites and still use it on one site to pull headlines from Yahoo. Once you grab the info with the parser you can pretty much do what you want to with it.

laiwa
09-09-2004, 01:35 PM
That looks interesting, I will sure check it out thanks.
What is the difference between a RSS feed and a XML feed? XML is a document, is it so that the feed of the document is called RSS?
To many new definitions here...

mobilebadboy
09-09-2004, 03:26 PM
RSS (Really Simple Syndication) is an XML application used for sharing and syndicating content.

What is RSS? (http://www.xml.com/pub/a/2002/12/18/dive-into-xml.html)
What Is RSS? RSS Explained (http://www.whatisrss.com)

But if you look at an RSS feed, take Yahoo's Stock Market feed for example, you'll see it's still basically just XML.

http://rss.news.yahoo.com/rss/stocks

I pull that feed on my site, daytradeinfo.com, using magpie.

8-|

jlknauff
09-15-2004, 11:46 AM
laiwa, what's with all the spam at the bottom of your page?

laiwa
09-15-2004, 12:00 PM
That is the footer link, linking to the other pages in the same category. Is that spam for you? Then you have another definition for spam then I use.

jlknauff
09-15-2004, 12:05 PM
They all link to your index page. That is spam. :D

laiwa
09-15-2004, 12:19 PM
Hi,
Actually they dont. If you do a "view->source" on your browsers menu and look at the source code, at the bottom, you will see the links. They look like this:
<span class="footer"><a href="/samsung/samsung-e310-wallpapers.php">Samsung e310 Wallpapers</a></span>

<span class="footer"><a href="/samsung/samsung-e400-ringtones.php">Samsung e400 Ringtones</a></span>

And each one goes to a unique page. I have a lot since each category has a lot of cellphones+content. What probobly confuses is that I use a script to hide the info text at the bottom left corner on the browser, it says "Laiwa.com" now and could of course bee thought of as a link if you dont know how a link is displayed by the browser, it always uses http...
Since that script isnt very good anyway, you can sometimes see the real link blinking there. It was originally done to hide showing some links for products we sold and have been outdated so I will most likely remove that script at the next site update.

Pyrrhonist
09-15-2004, 12:47 PM
Guys, this is completely off topic. If you'd like to have a discussion on whether or not placing a sitemap on your index page is spam please direct it to the appropriate forum/thread.

Thanks.