Hello,
I have a weird issue :
var xml:XML = new XML("<a id='0'><b1 id='2'><c id='3'>1</c></b1><b2 id='4'></b2></a>");
var locNode:XMLNode = xml.idMap[0];
var newNode:XMLNode = xml.createElement('test id="44"');
locNode.appendChild(newNode);
var locNode:XMLNode = xml.idMap[44];
trace(locNode); //traces undefined
What happens is that i locate a node by its id, then add a new element, which work fine. But when i want to create a new element on that newly created node, the idMap fails… Like it’s not in the xml. What do i do wrong??
TiA