xmlID=new XML ("<a id='1'/><b id='2'><bb id='4'/></b><c id='3'/>") var map=xmlID.idMap; trace (map[1]) trace (map[2])