AdvancedDataGrid with XML
In a prior post I promised to provide some thoughts on the AdvancedDataGrid and XML. Well, that post was written about 4 months ago, and I’m finally delivering. I’ve put together a simple demo to show how the AdvancedDataGrid works with XML data:
Each of the first three tabs works with a different XML file. Each of these files contains essentially the same data; the differences are in the way the data is structured. The fourth tab illustrates what appears to be an error in the Flex documentation.
If I try to explain the differences between the XML files, this will turn into a very long post. A code sample is worth a million words, so I’ll leave it to you to explore the demo (right-click on the demo to view and download the source). Let me know your thoughts, comments, corrections, questions, etc.
_______________________
Update
To take the next step with XML and the AdvancedDataGrid, and see some better coding practices, see this post.






Reader Comments
Strange…
Did you post a bug on JIRA?
- Jason
PS - Good to see you posting again my friend.
@Jason:
I don’t think it’s a bug; I think it’s just the facts of life regarding XML and the AdvancedDataGrid. I intended to mention that for most real-world applications, binding the XML directly to the grid is not the best way to go anyway. I hope to post more on that “soon”.
I did send something in to LiveDocs about the apparent error there, but didn’t get a response.
Thanks a lot for this post, you really save me a lots of time. My XML structure problem was a shame!
Really usefull!
@Damien,
I’m glad it was useful - thanks for the encouragement!