Jump to content
awaddington

XML Feed to remote sites

Recommended Posts

Hi folks,This is pretty cool. I'm glad there is finally a forum for this site!I am currently working on a personal project using xhtml. What i would like to do is provide an xml feed (verbage?) for other websites providing information from my website (say...a joke of the day for instance).What i need to understand is how to access that information from an xhtml or html page while still following standards.For example, lets say I have the xml content stored at http://mysite.com/xmlfile.xml

<joke>  <title>Joke of the Day from MySite.com</title>  <link>http://mysite.com</link>  <question>Q: What do you get when you goose a ghost></question>  <answer>A: A hand full of sheet</answer>  <date>2005-10-20</date></joke>

I thought that using a data island, i could access the xml file using src and datafld, etc. but the <xml> tag doesn't conform to strict xhtml.Ideally what I want is to be able to give the author a string that automatically reads/displays my xml content with their styling (I think that is the point of xml).Any thoughts are welcome. Thank you in advance.CheersAndrew

Share this post


Link to post
Share on other sites

sorry the off-topic, and sorry the bad english! :) in this code:

<info>  <jokes>    <joke>      <title>Joke of the Day from MySite.com</title>      <link>http://mysite.com</link>      <question>Q: What do you get when you goose a ghost></question>      <answer>A: A hand full of sheet</answer>      <date>2005-10-20</date>    </joke>  </jokes></info>

how can i get the data, in a spam, div or table, of the joke? (darn, i'm a noob :)) :(

Share this post


Link to post
Share on other sites

To the original poster, data islands aren't a web standard yet so you can't do what your asking without the help of .php or .asp or some other server-side scripting.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...