var xmlListColl:XMLListCollection = new XMLListCollection();
var x:XMLList = <><p>1</p></>;
xmlListColl.addItem(x);
this works and i get no internal thing which is the same as yours, are you 
using flex 2?


----- Original Message ----
From: Peeyush Tuli <[EMAIL PROTECTED]>
To: [email protected]
Sent: Sunday, February 24, 2008 11:53:36 AM
Subject: Re: [flexcoders] problem with XMLListCollection addItem()

Can you post some sample code coz the code below does 
not behave as you mentioned.

private function oncomplete() :void{
    var xmlListColl: XMLListCollectio n = new XMLListCollection;
    var x:XMLList = < ><p>1</p></>;
    xmlListColl. addItem(x) ;
}



On Sat, Feb 23, 2008 at 7:00 PM, xmwang1982 <[EMAIL PROTECTED] com> wrote:

Hi experts,

that's strange if you append a XMLList object into a XMLListCollection
object using addItem() method. It automatically add the following XML
into the XMLList object:

<mx_internal_ uid xmlns:xsi="http://www.w3. org/2001/ XMLSchema- instance">
B93F361A-9266- CE11-76D1- 467B259373F8
</mx_internal_ uid>

It causes some mistakes. For example, if you are using this
XMLListCollection object as data provider of a tree, there would be a
new node for this "mx_internal_ uid".

Any idea to avoid this problem? Thanks a lot.







      
____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Reply via email to