write in XML dynamically
This is first time I'm trying to write in XML, so I'm sorry if this is a simple question. I have a textbox on the field which will be used for entering names, and I created XML tags using
var objs:XML = new XML( <objects /> );
var objname:XML = new XML ( <objectname /> );
objs.appendChild( objname); // add the <name> node to <objects>
I hope to have a XML structure of
<object>
<objectname>james</objectname>
<objectname>jennice</objectname>
<object/>
But I do not know how to write from textbox in flash to the xml file, or dynamicly create a xml from as3. Please help, thanks in advance.