# Please Help! XML SendAndLoad Problem!

**URL:** <https://forum.kirupa.com/t/please-help-xml-sendandload-problem/184708>\
**Category:** flash\
**Created:** [April 7, 2006, 1:35am UTC](https://forum.kirupa.com/t/please-help-xml-sendandload-problem/184708 "2006-04-07T01:35:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [April 7, 2006, 1:35am UTC](https://forum.kirupa.com/t/please-help-xml-sendandload-problem/184708/1 "2006-04-07T01:35:16Z")

</div>

I really need help - this project ive been working on for months is seriously jeopardised cause of this stupid thing.

ive got 2 XML objects

```auto

var XMLreciever = new XML();
XMLreciever.ignoreWhite = true;
//
var XMLsender = new XML();
XMLreciever.ignoreWhite = true;

```

then i try and sendAndLoad to a cfm

```auto

XMLreciever.onLoad = function(success:Boolean) {
    if (success) {
        _root.debug_txt.text = _root.XMLreciever;
        _root.createTextField("textinfofield", 222, 55, 55, 200, 50);
        _root.textinfofield.text = "SUCCESS ASSUMED - LETS HOPE";
        //
        _root.play();
    } else {
        _root.debug_txt.text = this;
        _root.createTextField("textinfofield", 222, 55, 55, 200, 50);
        _root.textinfofield.text = "FAILURE ASSUMED - DAMMIT";
    }
};
////
XMLsender.parseXML("<mapID>"+mapID+"</mapID>");
///
XMLsender.sendAndLoad("flash_map_xml.cfm", XMLreciever);
//

```

and i get the \*\*success \*\*message - but then if i try to use the xml vars i passed - **everything is undefined!!!** if i use a .cfm with the output in there, ie one that doesnt execute a query, it works fine - but if i use the proper one that calls the database - it doesnt work!

please any help about XML sendAndLoad with CFM i need!

---

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [April 7, 2006, 3:07am UTC](https://forum.kirupa.com/t/please-help-xml-sendandload-problem/184708/2 "2006-04-07T03:07:13Z")

</div>

OK i traced the XML.status when it loads in the if(success) section and it returns

-10 An end-tag was encountered without a matching start-tag.

but howcome the output of the cfm works fine when its hardcoded in a .cfm but the proper dynamic one doesnt?

- and also if the cfm that the vars is in is renamed so its named incorrectly so the flash cant find it - it still says -10!!!

WHYAAAA MUMMY!

---

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [April 7, 2006, 5:37am UTC](https://forum.kirupa.com/t/please-help-xml-sendandload-problem/184708/3 "2006-04-07T05:37:06Z")

</div>

is it wrong to use XML sendAndLoad with Coldfusion? Im sure it can be done?!? I think …
