...

View Full Version : flex xml in tree



arunsoorya
08-03-2010, 09:36 AM
The following xml values is getting from php file

<result>
<list>
<node>air</node>
<node>flex</node>
<node>android</node>
</list>
</result>

i am calling this xml using httpservice


<mx:HTTPService
id="project"
url="http://localhost/eshpm/AIR/newproject.php"
method="POST" result="onResult_projectname(event)" resultFormat="e4x">
<mx:request xmlns="">
<name>yes</name>
</mx:request>
</mx:HTTPService>

The result is obtained using the function



private function onResult_projectname(evt:ResultEvent):void
{

xmldata = new XML(evt.result);
xmlList_user = new XMLListCollection(xmldata.list);

tree.dataProvider = xmlList_user.children();
}

The problem is that i am able to display the values in Tree.......but it is repeating

ie, "air" is comming in tree twice....

plz help.............thanks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum