Try just adding item tag and not the outer order tag

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Gupta, Pradeep
Sent: Wednesday, December 19, 2007 10:05 PM
To: [email protected]
Subject: [flexcoders] Problem with XMLListCollection binding with
listcontrol

 

Hi,

I am facing one problem while modifying the XMLListcollection binded
with the list control. Every thing works fine as expected but when I
modify the list (addition or renaming the list) through User Interface
such as Pop up the added element the whole xml of the added item gets
added however I was expecting the value of a particular tag.

For e.g. XML is shown below 

List control has items binded to description element then it shows 

Big Screen Television

DVD Player

But when I add LCD Player through UI

<order>

       <item id = "3456">

       <description>LCD Player</description>

       <price>1299.99</price><quantity>1</quantity>

       </item>

</order>

is created. Any clues??

I am using the E4x format for the received xml and already defined the
namespaces required for the xml parsing.

public var xdata:XML = <order>

                        <item id = "3456">

                            <description>Big Screen
Television</description>

                            <price>1299.99</price><quantity>1</quantity>

                        </item>

                        <item id = "56789">

                            <description>DVD Player</description>

                            <price>399.99</price>

                            <quantity>1</quantity>

                        </item>

                    </order>;

Thanks

 

Reply via email to