Hmm. Did you try commenting out lines of code in your first example until it looks like this employees example? Maybe one of the lines cause a bug. I wasn't sure what list1[0][0][0] would be, for example.
Or comment out the <c /> node. I just noticed that the append may have picked up the name() from the last node, not the last node in the XMLList, and that would be a bug, IMO. -Alex On 5/6/16, 12:21 AM, "Harbs" <harbs.li...@gmail.com> wrote: >No. That’s not it. > >For example, this: > >var e = <employees> ><employee id="1"><name>Joe</name><age>20</age></employee> ><employee id="2"><name>Sue</name><age>30</age></employee> ></employees>; >// append employees 3 and 4 to the end of the employee list >var newE:XMLList = new XMLList(); >newE[0] = <employee id="3"><name>Fred</name></employee>; >newE[1] = <employee id="4"><name>Carol</name></employee>; >e.employee += newE; >trace(e); > >outputs: ><employees> > <employee id="1"> > <name>Joe</name> > <age>20</age> > </employee> > <employee id="2"> > <name>Sue</name> > <age>30</age> > </employee> > <employee id="3"> > <name>Fred</name> > </employee> > <employee id="4"> > <name>Carol</name> > </employee> ></employees> > >There’s something about the XML in my test case which is preventing the >appending of either XML or XMLList to the original XML object. It feels >to me like a bug in Flash… > >On May 6, 2016, at 10:06 AM, Alex Harui <aha...@adobe.com> wrote: > >> Well, the spec is checking to see if the thing appended is an XMLList >>and >> in the above example, I think you are appending XML not XMLList so that >> might explain the different behavior. >