What's the best way to dynamically load/bind XML data to Flesh/Flash UI 4.0 UI components?

Hi:

I'm relatively new the world of Flex/Flash 4.0.
I'm trying to load/bind data into a Flex component.

I've got an advanced data grid embedded in a <mx:form>.
I've got some simple sample data in an external XML file.
The data (in an external file) looks like this:
<?xml version="1.0"?>
<Feed>
   <filter>Apple</filter>
   <rows>
      <row> <user>John</user> <dataText>One Tweet Apple</dataText> </row>
      <row> <user>Fred</user> <dataText>Two Tweet Apple</dataText> </row>
      <row> <user>Ethel</user> <dataText>Three Tweet Apple</dataText> </row>
      <row> <user>Bob</user> <dataText>Four Tweet Apple</dataText> </row>
      <row> <user>Ringo</user> <dataText>Five Tweet Apple</dataText> </row>
      <row> <user>George</user> <dataText>Six Tweet Apple</dataText> </row>
   </rows>
</Feed>

I create my <mx:form> dynamically. So, I'd like to dynamically load in the xml data and bind it to the controls (grid and otherwise) in my form.

What's the best approach for this?

Thanks,
JohnB
LVL 1
jxbmaSoftware ConsultantAsked:
Who is Participating?
 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
See this example where they show how to load a xml in advanceddatagrid.

http://jiflextech.blogspot.com/2009/05/how-load-xml-file-into-advanceddatagrid.html

when you say you mx:form dynamically you do it via actions script code?
0
 
jxbmaSoftware ConsultantAuthor Commented:
Yes. Based on user gesture, I create a component with an hGroup in a panel.
At that point, I determine what flavor of data the user wants and want to display
it within a grid on the newly created form.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.