Re: Connection Manager responseXML
>Have you the appropriate content type header defined?
> I have a simple PHP script that uses curl to obtain an RSS news feed
> (very similar to the PHP proxy shown on the developer network). I have
> tried echoing this and using o.responseXML but this property is null.
> o.responseText is populated with a textual string of the complete RSS
> How can I just pass the whole XML file to Connection Manager with the
> PHP file so that o.responseXML is populated?
If so, let's have a look at the XML you're sending from PHP to the client.
- I've still got issues though!
in the RSS file there are a series of <item> nodes and each <item>
has a series of child nodes such as <title> <description> and others.
I can do:
var items = root.getElementsByTagName("item");
and the alert says 26 so I'm getting he XML file, the o.responseXML
property is populated and I can get nodes from it. But, if I do:
var title = root.getElementsByTagName("item").childNodes
The alert says null. I can get the item nodes but I can't get the
nodeValue of the first child of the first item node.
Why is this?
- ok, I got it, using:
var titles = root.getElementsByTagName("title");
Gives me the text from the third <title> node that I want :]