Could you please clarify which of the following you want to do
1. You have an (Actionscript)XML variable in a different file and want to bind to that.
2. You have XML inside a .xml file and want to bind to that
I have XML inside a .xml file... that's what I want to bind to.
http://www.adobe.com/devnet/air/flex/quickstart/xml_prefs.html - This should help you, i guess.
private function saveXML():void
personXML.firstName = fName_txti.text;
personXML.lastName = lName_txti.text;
var newXMLStr:String = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + personXML.toXMLString();
var fs:FileStream = new FileStream();
This function can be the eventHandler function for, say an XML change event etc.
Hope this helps,