View Single Post
Old 09-15-2005, 09:48 AM  
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
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.
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote