Showing XML structure in a Tree

This is a subcomponent of a larger application I am working on but is a pretty neat widget on its own. The code loads any xml file on the www thats accessible to Flash and renders it as is. All attributes are rendered in a node named __attributes and have a different icon than node icons. This took me a couple of hours but is interesting if you are making the leap from the XML Object in AS2 to the e4x way of AS3. The app can be seen here and the source can be seen here



Whats interesting is xhtml stuff comes out looking pretty clean as well. Anyone thinking dom-reader type application ?

6 Comments so far

  1. [...] Original post by arpit and plugin by Elliott Back [...]

  2. Flex Coding « Panduramesh’s Weblog on September 19th, 2008

    [...] Flex DataGrids in less than 1 hour! Angus Johnson :: Datagrid Label Function Demo Arpit Mathur :: Showing XML structure in a Tree Ben Clinkinbeard :: Item Renderers in DataGrids – A Primer for Predictable Behavior Ben [...]

  3. Flex with Java « anil4it on September 30th, 2008

    [...] Flex DataGrids in less than 1 hour! Angus Johnson :: Datagrid Label Function Demo Arpit Mathur :: Showing XML structure in a Tree Ben Clinkinbeard :: Item Renderers in DataGrids – A Primer for Predictable Behavior Ben [...]

  4. [...] Arpit Mathur :: Showing XML structure in a Tree [...]

  5. FLEX CODING « welcome nandhu on October 22nd, 2008

    [...] Arpit Mathur :: Showing XML structure in a Tree [...]

  6. [...] branches by clicking on the row Adding leaf notes Showing XML Rearranging nodes with drag and drop Drag from a Grid to a [...]

Leave a reply