Question:
How can I include a XML feed on my homepage?
Luke Skywalker
2006-09-13 09:03:18 UTC
I would like to include some Answers answers to my homepage (using php). http://answers.yahooapis.com/AnswersService/V1/questionSearch?appid=YahooDemo&query=cars

How can I include this XML? I found Magpie RSS, but this seems to work just with RSS feeds. Is there any script where I put the URL of the feed in, definey how each value should look like and push the page to my server.
Six answers:
Pebble
2006-09-13 09:06:22 UTC
I have not tried this, but today morning i found in the help section of yahoo 360 on how to add feeds for Q&A.Try that..



Go to ur profile....see the right hand side , you will find how to add BADGES, when u click this link , you will be directed to a page where u will find ur ques as a sample view- if u had posted any and a HTML code, which u will be allowed to cut and paste in your home page....
?
2016-10-15 03:14:45 UTC
Extensible Markup Language (XML) is a popular-objective specification for starting to be custom markup languages.[a million] that's categorized as an extensible language, via fact it facilitates the person to outline the mark-up factors. XML's objective is to assist advice structures in sharing based records, exceedingly by way of the internet, [2] to encode records, and to serialize records; interior the final context, it compares with textual content textile-based serialization languages which incorporate JSON and YAML. I merely googled "what's a XML feed" - you will hit upon greater solutions by ability of doing the comparable ingredient....
WhizKid23
2006-09-13 09:32:23 UTC
RSS is basically XML !!



You are using the wrong FEED, here is the correct method/feed (See the last variable &output=rss, that is what u were missing)



http://answers.yahooapis.com/AnswersService/V1/questionSearch?appid=YahooDemo&query=cars&output=rss



Info - http://developer.yahoo.com/answers/



DO REMEBER TO CHOOSE OUTPUT TYPE AS RSS



You can try http://www.rss2html.com/ its easy to use



USE YOUR OWN API KEY, OTHERWISE IT WILL NOT WORK



e.g. http://www.rss2html.com/rss2html.php?TEMPLATE=template-1-1-2.htm&XMLFILE=http://ask.yahoo.com/index.xml



Shalini,

http://MegaLeecher.net - The IT Tips, Tricks, Tools and News Portal
jake cigarâ„¢ is retired
2006-09-13 12:00:39 UTC
sweet feed! I didn't know yahoo had anything other than simple rss.



Ok, you need to be able to parse xml, a good xml parser with xpath support should have you looping through the data las if it was a simple array!



xmlparser + xpath ... you can do it all in client side js, or server side in php or the cgi language of your choice!
Trans Atlantic
2006-09-13 09:06:02 UTC
don't know
Aroran
2006-09-13 09:04:47 UTC
dunno good luck!


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...