I want to create a XMLList using e4x grammar like this:
var list:XMLList  = 
<Region>
       <city> LA. </city>
       <city> SF. </city>
       ...
</Region>;
 
function createList(nodeName:String, city:String):void{
...
...
list += < nodeName > city </ nodeName >;
}
 
but the list finally is look like this:
<nodeName> city </nodeName>
<nodeName> city </nodeName>
...
 
How can I create xmlList node and xmllist node content dynamically ?

Reply via email to