<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Displaying dynamically loaded XML in a DataGrid control in Flex</title>
	<atom:link href="http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 19:26:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: balaji</title>
		<link>http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/comment-page-1/#comment-10360</link>
		<dc:creator>balaji</dc:creator>
		<pubDate>Fri, 03 Feb 2012 06:20:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/#comment-10360</guid>
		<description>hey peter,

how do i dispaly dynamic xml or xsd as tree in flex 4.5?</description>
		<content:encoded><![CDATA[<p>hey peter,</p>
<p>how do i dispaly dynamic xml or xsd as tree in flex 4.5?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/comment-page-1/#comment-4862</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 30 Jul 2009 23:32:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/#comment-4862</guid>
		<description>Hi Peter,

I guess I may not be clear in what I&#039;m trying to do exactly. Let me try again. I will be using HTTPSERVICE from flex to connect to an XML file just like this link: http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/comment-page-1/#comment-4830

What I&#039;m looking to do with this example which will help others too. Is to scroll thru the XML nodes that are displayed and locate the one to remove/delete. I need it to delete the record from the XML live.

Thanks for all your help and replies!

Kimo</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>I guess I may not be clear in what I&#8217;m trying to do exactly. Let me try again. I will be using HTTPSERVICE from flex to connect to an XML file just like this link: <a href="http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/comment-page-1/#comment-4830" rel="nofollow">http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/comment-page-1/#comment-4830</a></p>
<p>What I&#8217;m looking to do with this example which will help others too. Is to scroll thru the XML nodes that are displayed and locate the one to remove/delete. I need it to delete the record from the XML live.</p>
<p>Thanks for all your help and replies!</p>
<p>Kimo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/comment-page-1/#comment-4833</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Wed, 29 Jul 2009 23:51:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/#comment-4833</guid>
		<description>@Kimo,

Check out my &lt;a href=&quot;http://blog.flexexamples.com/2009/07/23/deleting-nodes-from-an-xml-object-in-flex/&quot; rel=&quot;nofollow&quot;&gt;&quot;Deleting nodes from an XML object in Flex&quot;&lt;/a&gt; post.

Peter</description>
		<content:encoded><![CDATA[<p>@Kimo,</p>
<p>Check out my <a href="http://blog.flexexamples.com/2009/07/23/deleting-nodes-from-an-xml-object-in-flex/" rel="nofollow">&#8220;Deleting nodes from an XML object in Flex&#8221;</a> post.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony</title>
		<link>http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/comment-page-1/#comment-4830</link>
		<dc:creator>Anthony</dc:creator>
		<pubDate>Wed, 29 Jul 2009 23:30:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/#comment-4830</guid>
		<description>Peter,

Thank you....

I will certainly test this. Im really trying to build a flex app that will display XML data in a datagrid. I would like to search through the child nodes for a unique node &quot;Artist&quot; ti be displayed. Then I would like to delete that node. Is this dificult to do in flex? I would image I need php in conjuction with flex to get this to work. but I need a starting point.

All your help is much appreciated Peter.

Kimo</description>
		<content:encoded><![CDATA[<p>Peter,</p>
<p>Thank you&#8230;.</p>
<p>I will certainly test this. Im really trying to build a flex app that will display XML data in a datagrid. I would like to search through the child nodes for a unique node &#8220;Artist&#8221; ti be displayed. Then I would like to delete that node. Is this dificult to do in flex? I would image I need php in conjuction with flex to get this to work. but I need a starting point.</p>
<p>All your help is much appreciated Peter.</p>
<p>Kimo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/comment-page-1/#comment-4706</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Fri, 24 Jul 2009 01:03:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/#comment-4706</guid>
		<description>Also posted as http://blog.flexexamples.com/2009/07/23/deleting-nodes-from-an-xml-object-in-flex/

Peter</description>
		<content:encoded><![CDATA[<p>Also posted as <a href="http://blog.flexexamples.com/2009/07/23/deleting-nodes-from-an-xml-object-in-flex/" rel="nofollow">http://blog.flexexamples.com/2009/07/23/deleting-nodes-from-an-xml-object-in-flex/</a></p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/comment-page-1/#comment-4705</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Fri, 24 Jul 2009 00:56:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/#comment-4705</guid>
		<description>Anthony, 

It may depend on exactly what you&#039;re trying to do, but hopefully this shows how to delete nodes from an XML object:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; 
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            protected function btn1_clickHandler(evt:MouseEvent):void {
                delete someXML.nodeToDelete;
                txtArea.text = someXML.toXMLString();
            }

            protected function btn2_clickHandler(evt:MouseEvent):void {
                delete someXML.child.(@label == &#039;two&#039;)[0];
                txtArea.text = someXML.toXMLString();
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:XML id=&quot;someXML&quot;&gt;
        &lt;root&gt;
            &lt;child label=&quot;one&quot; /&gt;
            &lt;child label=&quot;two&quot; /&gt;
            &lt;child label=&quot;three&quot; /&gt;
            &lt;nodeToDelete label=&quot;four&quot; /&gt;
            &lt;child label=&quot;five&quot; /&gt;
            &lt;nodeToDelete label=&quot;six&quot;&gt;
                &lt;child label=&quot;seven&quot; /&gt;
                &lt;child label=&quot;eight&quot; /&gt;
            &lt;/nodeToDelete&gt;
            &lt;child label=&quot;nine&quot; /&gt;
        &lt;/root&gt;
    &lt;/mx:XML&gt;

    &lt;mx:ApplicationControlBar dock=&quot;true&quot;&gt;
        &lt;mx:Button id=&quot;btn1&quot;
                label=&quot;delete &lt;nodeToDelete&gt; nodes&quot;
                click=&quot;btn1_clickHandler(event);&quot; /&gt;
        &lt;mx:Button id=&quot;btn2&quot;
                label=&quot;delete &lt;child label=&#039;two&#039;&gt; node&quot;
                click=&quot;btn2_clickHandler(event);&quot; /&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:TextArea id=&quot;txtArea&quot;
            text=&quot;{someXML.toXMLString()}&quot;
            width=&quot;300&quot; height=&quot;200&quot; /&gt;

&lt;/mx:Application&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>Anthony, </p>
<p>It may depend on exactly what you&#8217;re trying to do, but hopefully this shows how to delete nodes from an XML object:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span> 
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span></span>
<span style="color: #000000;">        layout=<span style="color: #ff0000;">&quot;vertical&quot;</span></span>
<span style="color: #000000;">        verticalAlign=<span style="color: #ff0000;">&quot;middle&quot;</span></span>
<span style="color: #000000;">        backgroundColor=<span style="color: #ff0000;">&quot;white&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">        &lt;![CDATA[</span>
<span style="color: #339933;">            protected function btn1_clickHandler(evt:MouseEvent):void {</span>
<span style="color: #339933;">                delete someXML.nodeToDelete;</span>
<span style="color: #339933;">                txtArea.text = someXML.toXMLString();</span>
<span style="color: #339933;">            }</span>
&nbsp;
<span style="color: #339933;">            protected function btn2_clickHandler(evt:MouseEvent):void {</span>
<span style="color: #339933;">                delete someXML.child.(@label == 'two')[0];</span>
<span style="color: #339933;">                txtArea.text = someXML.toXMLString();</span>
<span style="color: #339933;">            }</span>
<span style="color: #339933;">        ]]&gt;</span>
<span style="color: #339933;">    &lt;/mx:Script&gt;</span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:XML</span> id=<span style="color: #ff0000;">&quot;someXML&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;root<span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;">&lt;child label=<span style="color: #ff0000;">&quot;one&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;">&lt;child label=<span style="color: #ff0000;">&quot;two&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;">&lt;child label=<span style="color: #ff0000;">&quot;three&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;">&lt;nodeToDelete label=<span style="color: #ff0000;">&quot;four&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;">&lt;child label=<span style="color: #ff0000;">&quot;five&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;">&lt;nodeToDelete label=<span style="color: #ff0000;">&quot;six&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;">&lt;child label=<span style="color: #ff0000;">&quot;seven&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;">&lt;child label=<span style="color: #ff0000;">&quot;eight&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;">&lt;/nodeToDelete<span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;">&lt;child label=<span style="color: #ff0000;">&quot;nine&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;">&lt;/root<span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:XML</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:ApplicationControlBar</span> dock=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> id=<span style="color: #ff0000;">&quot;btn1&quot;</span></span>
<span style="color: #000000;">                label=<span style="color: #ff0000;">&quot;delete &amp;lt;nodeToDelete&amp;gt; nodes&quot;</span></span>
<span style="color: #000000;">                click=<span style="color: #ff0000;">&quot;btn1_clickHandler(event);&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> id=<span style="color: #ff0000;">&quot;btn2&quot;</span></span>
<span style="color: #000000;">                label=<span style="color: #ff0000;">&quot;delete &amp;lt;child label='two'&amp;gt; node&quot;</span></span>
<span style="color: #000000;">                click=<span style="color: #ff0000;">&quot;btn2_clickHandler(event);&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:ApplicationControlBar</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:TextArea</span> id=<span style="color: #ff0000;">&quot;txtArea&quot;</span></span>
<span style="color: #000000;">            text=<span style="color: #ff0000;">&quot;{someXML.toXMLString()}&quot;</span></span>
<span style="color: #000000;">            width=<span style="color: #ff0000;">&quot;300&quot;</span> height=<span style="color: #ff0000;">&quot;200&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony</title>
		<link>http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/comment-page-1/#comment-4701</link>
		<dc:creator>Anthony</dc:creator>
		<pubDate>Thu, 23 Jul 2009 23:16:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/#comment-4701</guid>
		<description>Great example! I would like to be able to edit the list nodes in the XML file it&#039;s communicating with. Basically, to be able to delete a node record. How difficult would it be to make this happen? Any help would be appreciated. 
Perhaps another tutorial will demonstrate doing a search and removal node.</description>
		<content:encoded><![CDATA[<p>Great example! I would like to be able to edit the list nodes in the XML file it&#8217;s communicating with. Basically, to be able to delete a node record. How difficult would it be to make this happen? Any help would be appreciated.<br />
Perhaps another tutorial will demonstrate doing a search and removal node.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sanchit</title>
		<link>http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/comment-page-1/#comment-4678</link>
		<dc:creator>Sanchit</dc:creator>
		<pubDate>Wed, 22 Jul 2009 05:36:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/#comment-4678</guid>
		<description>i am not able to edit the information displayed using the above said labelfunction.
any solution to that problem.

thanks in advance</description>
		<content:encoded><![CDATA[<p>i am not able to edit the information displayed using the above said labelfunction.<br />
any solution to that problem.</p>
<p>thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ufuk</title>
		<link>http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/comment-page-1/#comment-4038</link>
		<dc:creator>ufuk</dc:creator>
		<pubDate>Thu, 16 Apr 2009 08:39:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/#comment-4038</guid>
		<description>your posts are great! thank you.. the codes work perfect..</description>
		<content:encoded><![CDATA[<p>your posts are great! thank you.. the codes work perfect..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pete</title>
		<link>http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/comment-page-1/#comment-4039</link>
		<dc:creator>pete</dc:creator>
		<pubDate>Wed, 25 Feb 2009 15:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/12/10/displaying-dynamically-loaded-xml-in-a-datagrid-control-in-flex/#comment-4039</guid>
		<description>Hey there, does this only work with sitemaps? i wanted to use this with a project i&#039;m working on, but when i pull in my xml data set it doesn&#039;t show the data in the datagrid, but it is there as the double click works fine...
i can upload a sample of my xml and the code how i&#039;ve edited it if that would help, plus i can do a screen shot of the datagrid if needed?
any ideas?
cheers
pete</description>
		<content:encoded><![CDATA[<p>Hey there, does this only work with sitemaps? i wanted to use this with a project i&#8217;m working on, but when i pull in my xml data set it doesn&#8217;t show the data in the datagrid, but it is there as the double click works fine&#8230;<br />
i can upload a sample of my xml and the code how i&#8217;ve edited it if that would help, plus i can do a screen shot of the datagrid if needed?<br />
any ideas?<br />
cheers<br />
pete</p>
]]></content:encoded>
	</item>
</channel>
</rss>

