View Single Post
Old 09-15-2005, 10:09 AM  
jawanda
Confirmed User
 
Join Date: Feb 2003
Posts: 6,040
Quote:
Originally Posted by psili
The only reason I was thinking XML as pretty much any scripting language could grab it from a remote server and parse it however they want - much like how RSS is such a big hit since it's just XML.

Code:
<?xml version="1.0"?>
<content>
 <item>
  <link>http://somewhere.com</link>
  <text>text for the hyperlink</text>
  <img width="100" height="120">http://somewhere.com/img.jpg</img>
 </item>
 <item>
  <link>http://somewhere.com</link>
  <text>text for the hyperlink</text>
  <img width="100" height="120">http://somewhere.com/img.jpg</img>
 </item>
 <item>
  <link>http://somewhere.com</link>
  <text>text for the hyperlink</text>
  <img width="100" height="120">http://somewhere.com/img.jpg</img>
 </item>
 .......
</content>
Let's say you somehow dymanically create the above XML file. Any remote server can grab it when they want, parse it (using any number of parsers; i.e. tons of free PHP tutorials for parsing) into the HTML formatting they need.

Basically, if you remove the data from the presentation (html), the end user has free reign on how they can display it.

Then again, it takes added knowledge to be able to parse it in the first place.
Cool psilli thanks for the info!

At first i was just thinking of using a virtual include which i think would be easier, but i just read that virtual includes don't work cross-domain. anyone know if that's true? I gues i just need to try it lol ..

Thanks again !!

-Phil
jawanda is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote