Hi, I'm having trouble saving my XML to a variable. I have this right here:
PHP Code:
news.onLoad = function(success) {
if (success) {
for(i=0;i<=news.firstChild.childNodes.length;i++){
trace(news.firstChild.childNodes[i].childNodes[0].firstChild);
trace(news.firstChild.childNodes[i].childNodes[1].firstChild);
}
}
};
That traces correctly...
Quote:
May 7, 2004
Here is entry one
May 3, 2004
Here is entry number 2
May 1, 2004
Here is entry 3
|
But what I'm wanting to do is send the text that I'm tracing to a variable, however, if I do this it the just re-defines the variable each time through the loop. Any type of advice on how ot get around this would be awesome.
Thanks!
Quinton