View Single Post
  #1 (permalink)  
Old 07-07-04, 11:33 PM
Jackal05 Jackal05 is offline
Newbie Coder
 
Join Date: Sep 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Syndicating XML data into a website using PHP...

Ok, let's say we have the following XML document located at www.anothersite.com/rss.xml
Code:
<rss version="2.0">
<channel>
<item1>Something</item1>
<item2>Something else</item2>
<item1>Some data</item1>
</channel>
</rss>
Now I wanna syndicate some (items 1 and 3) of that information into my own site.
I have proficient PHP skills and I know that it is possible to use PHP to display data like that on a website. Can someone tell me how to?
Using PHP I wanna turn each tag in the XML file into a variable then include that on the site. All I need to know is how to get a tag from the XML document displayed on a HTML document.

To break it down let's say I wanna have a small box on my site like:
Just some info:
- Item One: Something
- Item Three: Some data
Using the data from the XML document.

Thanks.
Reply With Quote