1 Reply Latest reply on Feb 28, 2010 7:12 AM by esrefatak

    Adding child and manipulating hierarchy of XML to use IBM ILOG Elixir orgchart component

    esrefatak Level 1

      Hi everyone,

       

      This code does not work beside does not occur error:

       

       

      <?xml version="1.0" encoding="utf-8"?>

      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="appComplete()">

      <mx:Script>

      <![CDATA[

      private var xml:XML =

              <menu>

                  <item>burger</item>

                  <products></products>

              </menu>;

      private function appComplete():void{

      xml[1].appendChild(<product>ball</product>);

      }

      ]]>

      </mx:Script>

      </mx:Application>

       

       

       

      What I want to do is adding "product" node in "products" node in XML.

       

      Thanks.