# ASP.NET XML OBJECT problem

**URL:** https://forum.kirupa.com/t/asp-net-xml-object-problem/68621
**Category:** flash
**Created:** [October 27, 2004, 1:25pm UTC](https://forum.kirupa.com/t/asp-net-xml-object-problem/68621 "2004-10-27T13:25:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![anand](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@anand](https://forum.kirupa.com/u/anand)
#### Post date: [October 27, 2004, 1:25pm UTC](https://forum.kirupa.com/t/asp-net-xml-object-problem/68621/1 "2004-10-27T13:25:35Z")

</div>

Hi,

I have loaded an xml object with data sent from an [asp.net](http://asp.net) application.

## the [asp.net](http://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](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]
