Taco,

Is it possible to dump out objXMLHTTP.ResponseXML to see what it is? I don't want to sound dumb but aren't you overwriting your objXMLDOM object with it?

Overwriting it is of course fine *if* objXMLHTTP.ResponseXML is already an XMLDOM object, but if it's the raw XML dump, then you have a problem.

Am I totally missing the plot here?
Are you getting any errors anyway?

Taco Fleur wrote:
Thanks, but no its not the case, just copied the wrong code in the email.
Following is the correct code

objXMLHTTP = createObject("COM", "Microsoft.XMLHTTP");
objXMLDOM = createObject("COM", "Microsoft.XMLDOM");

objXMLHTTP.open("GET", "http://www.coldfusionist.com/xml/rss/rss.xml";,
False);
objXMLHTTP.Send();
objXMLDOM = objXMLHTTP.ResponseXML;

objItem = objXMLDOM.getElementsByTagName("item");

writeOutput("<table width=""100%"" cellspacing=""5"" cellpadding=""5"">");
for (i = 0; i LTE objItem.length - 1; i = i +1  )
{
 writeOutput("<tr>");
 writeOutput("<td width='200'>");
 writeOutput("<a href='foo' target='_blank'>foo" & objItem(i).text);
 writeOutput("</a></td>");
 writeOutput("<td></td>");
 writeOutput("</tr>");
}

writeOutput("</table>");

objXMLHTTP = false;
objXMLDOM = false;


----- Original Message ----- From: "Viktor Radnai" <[EMAIL PROTECTED]> Newsgroups: cfaussie To: "CFAussie Mailing List" <[EMAIL PROTECTED]> Sent: Monday, February 24, 2003 7:07 PM Subject: [cfaussie] Re: cfscript object array reference



Hi Taco,

I haven't played with XML objects before, but isn't your problem caused
by you accidentally changing objXMLHTTP to objXMLDOM?

Apologies if I'm completely losing the plot here, I don't know anything
about the COM object you're using.

Taco Fleur wrote:

objXMLHTTP = createObject("COM", "Microsoft.XMLHTTP");

The code below creates an array and assigns it to the variable
"objURL" if I am correct
objURL = objXMLDOM.getElementsByTagName("url");

However I can't seem to refence to it, neither with
objURL(i).text); nor with
objURL[i].text);

Any ideas?


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to

[EMAIL PROTECTED]


MX Downunder AsiaPac DevCon - http://mxdu.com/








---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to