A site of mine was recently accepted by ah-ha as a distribution partner. However, ah-ha only offers a straight XML result feed. I have been using a simeple javascript to return results from another provider ...
My question is: What is the simplest way to retrieve XML data, and read it into a javascript array? XML fields that will be retrieved are: REDIRECT_URL, TITLE, and DESCRIPTION.
As always, thanks in advance for your replies
korkus2000
6:51 pm on Sep 11, 2003 (gmt 0)
AFAIK, You cannot parse files using client side javascript. Are you using server-side javascript? How are you doing it with the other provider?
drbrain
7:03 pm on Sep 11, 2003 (gmt 0)
You can in mozilla, likely similar features exist in IE.
var parser = new DOMParser();
var doc = parser.parseFromString("xml goes here", "text/xml");