Jump to content

XML Feed to remote sites


awaddington

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

Link to comment
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 :)) :(

Link to comment
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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...