ASP.NET XML OBJECT problem

Hi,

I have loaded an xml object with data sent from an asp.net application.

the asp.net code is

[size=2]Response.Write(“strTasksXML=” & strTasksXML & “&”)

the actionscript code where the value is obtained and loaded in xml object is


var strTasksXML
loadVariables(“http://abc.aspx?var=” + txtbox1.text,this);

xmldata = new XML();
xmldata.ignoreWhite = true;
xmldata.onLoad = loadXML;

function waittime() {
clearInterval(myTimer);
xmldata.load(strTasksXML);
}
myTimer = setInterval(waittime, 2000);

function loadXML(loaded) {
trace(xmldataold.firstChild.childNodes.length);
}


I get an error message in the trace function which says “Undefined”.The xml file is fine. When I run a trace on “strTasksXML” the result is fine.

The only problem is how to load it into an xml object, so that it can be manipulated.

Could someone help me out here?

Thanks in advance. Any help given is greatly appreciated.

anand.
[/size]