# \[XML\] AS - XML problem: .send() won't work

**URL:** <https://forum.kirupa.com/t/xml-as-xml-problem-send-wont-work/54152>\
**Category:** programming\
**Created:** [June 11, 2004, 1:21pm UTC](https://forum.kirupa.com/t/xml-as-xml-problem-send-wont-work/54152 "2004-06-11T13:21:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grappaFruit](https://avatars.discourse-cdn.com/v4/letter/g/43a26b/32.png) [@grappaFruit](https://forum.kirupa.com/u/grappaFruit)\
**Post date:** [June 11, 2004, 1:21pm UTC](https://forum.kirupa.com/t/xml-as-xml-problem-send-wont-work/54152/1 "2004-06-11T13:21:27Z")

</div>

I’m totally new to XML in Actionscript - implementing and editing XML within Actionscript worked out swell - no problems so far…

but the some\_xml.send() seems to become a true nightmare!

Soit, here’s an example:

I made a little “keep-in-touch” maillinglist, where visitors can leave their adress, click the “send” button - and let the administrator view the list on a secure page. XML suits fine for this job, i think.

```auto

on (press, keyPress "<Enter>") {

mailInput_xml = new XML();

mailInput_xml.ignoreWhite = true;

mailInput_xml.onLoad = function(success) {

		if (success) {

menuItem = this.firstChild.childNodes;

input = 'mail adress="' + _root.mailInput.text + '"';

this.firstChild.appendChild(mailInput_xml.createElement(input))

_root.mailInput.text = "THANK YOU!"

trace(this.toString())

}else{

_root.mailInput.text = "PLEASE TRY AGAIN"

}

};

mailInput_xml.load('Email.xml');

mailInput_xml.send('Email.xml');

}

```

trace() looked fine, the code puts the adress just where i want it to be, but the mailInput\_xml.send(‘Email.xml’) seems to be dead and smelly.

You can view the site (in construction version) at [http://www.fabula-rasa.be](http://www.fabula-rasa.be)

P.l.e.a.s.e. help me out here, it’s propably just something stupid i forgot…

(And yes, I tested it online, to be sure…)
