# Problem loading xml into dynamic field

**URL:** <https://forum.kirupa.com/t/problem-loading-xml-into-dynamic-field/205323>\
**Category:** flash\
**Created:** [October 28, 2006, 12:46am UTC](https://forum.kirupa.com/t/problem-loading-xml-into-dynamic-field/205323 "2006-10-28T00:46:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ladyramses](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ladyramses/32/2956_2.png) [@ladyramses](https://forum.kirupa.com/u/ladyramses)\
**Post date:** [October 28, 2006, 12:46am UTC](https://forum.kirupa.com/t/problem-loading-xml-into-dynamic-field/205323/1 "2006-10-28T00:46:52Z")

</div>

I can’t seem to get the xml to load into a dynamic field.

here is my actionscript:

//  
rssURL = “feed url here”;  
//  
function loadRSSfeed() {  
// set xml object  
var thisrssfeed = new XML();  
thisrssfeed.ignoreWhite = true;  
thisrssfeed.contentType = “text/xml”;  
thisrssfeed.onLoad = function(success) {  
if (success) {  
processxml(thisrssfeed);  
// do stuff  
for (var j = 1; j\<6; j++) {  
trace(\_root[“RSSItem”+j].feedTitle);  
trace(\_root[“RSSItem”+j].feedUrl);  
if (\_root[“RSSItem”+j].feedDescription != undefined) {  
trace(\_root[“RSSItem”+j].feedDescription);  
}  
trace(\_root[“RSSItem”+j].feedDate);  
trace(\_root[“RSSItem”+j].feedGuid);  
trace("----------");  
}  
} else {  
// do error handling  
}  
};  
thisrssfeed.load(rssURL+"&uniq="+new Date().getTime());  
}  
//  
function processxml(thisxml) {  
var thisxml = thisxml.firstChild.firstChild.childNodes;  
// this first five attributes aren’t required:  
for (i=5; i\<10; i++) {  
node = thisxml\*;  
\_root[“RSSItem”+(i-4)] = new Object();  
\_root[“RSSItem”+(i-4)].feedTitle = node.childNodes[0].firstChild.nodeValue;  
\_root[“RSSItem”+(i-4)].feedUrl = node.childNodes[1].firstChild.nodeValue;  
\_root[“RSSItem”+(i-4)].feedDescription = node.childNodes[2].firstChild.nodeValue;  
\_root[“RSSItem”+(i-4)].feedDate = node.childNodes[3].firstChild.nodeValue;  
\_root[“RSSItem”+(i-4)].feedGuid = node.childNodes[4].firstChild.nodeValue;  
}  
}  
//  
loadRSSfeed();  
stop();

I have used: \_root[“RSSItem3”].feedTitle in the Var field as well as the instance. I have used feedTitle as my instance while using RSSItem1 as my VAR- and vice versa.

why is it now pulling the data?

thanks in advance!
