<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-3919727606984245735.post4688165827936940986..comments</id><updated>2010-02-09T10:41:09.514-07:00</updated><category term='mobile'/><category term='android'/><category term='Jeff Krueger'/><category term='Paul Saieg'/><category term='Kinect'/><category term='Flex Examples'/><category term='Jeremy Mitchell'/><category term='custom components'/><category term='Screencasts'/><category term='AIR'/><category term='Data Binding'/><category term='Flex 4'/><category term='States'/><category term='Chris Hayen'/><category term='Skins'/><category term='Flex Basics'/><category term='Events'/><category term='poll'/><category term='flex builder'/><category term='mx_internal'/><category term='Item Renderer'/><title type='text'>Comments on Flex Developers &amp;amp; Development: XMLListCollection Basics</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.flexdevelopers.com/feeds/4688165827936940986/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3919727606984245735/4688165827936940986/comments/default'/><link rel='alternate' type='text/html' href='http://blog.flexdevelopers.com/2009/05/flex-basics-xmllistcollection.html'/><author><name>Jeremy Mitchell</name><uri>http://www.blogger.com/profile/03959259137206444646</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_jqSpGA89lEk/SslndB6NlVI/AAAAAAAAAAU/NMu0DecuanU/S220/me_thumb.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3919727606984245735.post-2923731716870913543</id><published>2010-02-09T10:41:09.514-07:00</published><updated>2010-02-09T10:41:09.514-07:00</updated><title type='text'>Hi,In my project Im dealing with loads of data as ...</title><content type='html'>Hi,In my project Im dealing with loads of data as XML back and forth, so application got slow, how can I make it fast, what r different approach can be tried?&lt;br /&gt;&lt;br /&gt;Any little help would be appreciated.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;shailendra</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3919727606984245735/4688165827936940986/comments/default/2923731716870913543'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3919727606984245735/4688165827936940986/comments/default/2923731716870913543'/><link rel='alternate' type='text/html' href='http://blog.flexdevelopers.com/2009/05/flex-basics-xmllistcollection.html?showComment=1265737269514#c2923731716870913543' title=''/><author><name>Shailendra yadav</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.flexdevelopers.com/2009/05/flex-basics-xmllistcollection.html' ref='tag:blogger.com,1999:blog-3919727606984245735.post-4688165827936940986' source='http://www.blogger.com/feeds/3919727606984245735/posts/default/4688165827936940986' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-296020527'/></entry><entry><id>tag:blogger.com,1999:blog-3919727606984245735.post-7658224839602404646</id><published>2009-12-22T10:56:08.957-07:00</published><updated>2009-12-22T10:56:08.957-07:00</updated><title type='text'>@Manikandan

To delete items (including their chil...</title><content type='html'>@Manikandan&lt;br /&gt;&lt;br /&gt;To delete items (including their children) from a Tree control&amp;#39;s dataprovider (XMLListCollection), use the Tree&amp;#39;s public property dataDescriptor.&lt;br /&gt;&lt;br /&gt;The dataDescriptor object implements the &lt;a href="http://livedocs.adobe.com/flex/3/langref/mx/controls/treeClasses/ITreeDataDescriptor.html" rel="nofollow"&gt;ITreeDataDescriptor&lt;/a&gt; and, therefore, has a method named removeChildAt.&lt;br /&gt;&lt;br /&gt;You can use it in this fashion:&lt;br /&gt;&lt;br /&gt;public function removeSelectedTreeItem():void {&lt;br /&gt;  var item2remove:XML = XML(tree.selectedItem);&lt;br /&gt;  tree.dataDescriptor.removeChildAt(item2remove.parent(),item2remove,item2remove.childIndex());&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;You can also add an item using the dataDescriptor&amp;#39;s addChildAt method but this could be much trickier depending on where you want to add it. Here&amp;#39;s a simple example that adds a new item after the tree&amp;#39;s currently selectedItem:&lt;br /&gt;&lt;br /&gt;private function addNewTreeItem():void {&lt;br /&gt;  var selectedItem:XML = XML(tree.selectedItem);&lt;br /&gt;  if (selectedItem == NULL) return;&lt;br /&gt;  var newItem:XML = &amp;lt;newElement/&amp;gt;;&lt;br /&gt;  tree.dataDescriptor.addChildAt(selectedItem.parent(),newItem,selectedItem.childIndex()+1);&lt;br /&gt;}</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3919727606984245735/4688165827936940986/comments/default/7658224839602404646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3919727606984245735/4688165827936940986/comments/default/7658224839602404646'/><link rel='alternate' type='text/html' href='http://blog.flexdevelopers.com/2009/05/flex-basics-xmllistcollection.html?showComment=1261504568957#c7658224839602404646' title=''/><author><name>Jeremy Mitchell</name><uri>http://www.blogger.com/profile/03959259137206444646</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/_jqSpGA89lEk/SslndB6NlVI/AAAAAAAAAAU/NMu0DecuanU/S220/me_thumb.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.flexdevelopers.com/2009/05/flex-basics-xmllistcollection.html' ref='tag:blogger.com,1999:blog-3919727606984245735.post-4688165827936940986' source='http://www.blogger.com/feeds/3919727606984245735/posts/default/4688165827936940986' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1529677019'/></entry><entry><id>tag:blogger.com,1999:blog-3919727606984245735.post-9078704750011766223</id><published>2009-12-22T05:54:53.519-07:00</published><updated>2009-12-22T05:54:53.519-07:00</updated><title type='text'>Hi i&amp;#39;m new to flex. i have tree dataprovider a...</title><content type='html'>Hi i&amp;#39;m new to flex. i have tree dataprovider as xmllistcollection. i want to add xml at multi hierarchy level, and also delete a item from tree. while delete if that selected item has child nodes delete its childs also. i tried some flex example but it not working properly as per the requirement..&lt;br /&gt;&lt;br /&gt;Thanks in advance..</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3919727606984245735/4688165827936940986/comments/default/9078704750011766223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3919727606984245735/4688165827936940986/comments/default/9078704750011766223'/><link rel='alternate' type='text/html' href='http://blog.flexdevelopers.com/2009/05/flex-basics-xmllistcollection.html?showComment=1261486493519#c9078704750011766223' title=''/><author><name>Manikandan S</name><uri>http://www.blogger.com/profile/18234922576946751136</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/_p01_yo-pgaU/Sy9emyZqUII/AAAAAAAAAC4/humrHCzn0l4/S220/hqrebsz76494acrnwz78.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.flexdevelopers.com/2009/05/flex-basics-xmllistcollection.html' ref='tag:blogger.com,1999:blog-3919727606984245735.post-4688165827936940986' source='http://www.blogger.com/feeds/3919727606984245735/posts/default/4688165827936940986' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1872632524'/></entry></feed>
