Skip navigation
Currently Being Moderated

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

Feb 28, 2010 5:23 AM

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.

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points