0 Replies Latest reply on May 15, 2008 6:06 AM by garag

    XML node inserting

    garag
      Hi

      is it possible use the function insertChildAfter() (or another useful function) to insert a node under the root node?
      For example, suppose that the initial xml is the following:

      var xml:XML =
      <menu>
      <item>burger</item>
      <item>soda</item>
      </menu>;

      and I would insert the node

      <aaa>bbb</aaa>

      just under the root and before the other nodes already placed under the root. The expected result is this:

      <menu>
      <aaa>bbb</aaa>
      <item>burger</item>
      <item>soda</item>
      </menu>

      How is it possible to do in flex3?

      Thank you very much.

      Regards