Hi I have an XML document which i'd like to display into a Flex Tree
component.

<application>
<appid>3</appid>
<appname>Firefox</appname>
<category>Internet Browsers</category>
<pkgs>
<pkg>
<version>2.0.0.6</version>
<platforms>
<platform>Vista</platform>
<platform>XP</platform>
</platforms>
<files>
<file>firefox/win32/Firefox Setup 2.0.0.6.exe</file>
</files>
<source>http://www.mozilla-europe.org/en/products/firefox</source>
<notes></notes>
</pkg>
<pkg>
<version>2.0.0.5</version>
<platforms>
<platform>Vista</platform>
<platform>XP</platform>
</platforms>
<files>
<file>firefox/win32/Firefox Setup 2.0.0.5.exe</file>
</files>
<source>http://www.mozilla-europe.org/en/products/firefox</source>
<notes></notes>
</pkg>
<pkg>
<version>2.0.0.4</version>
<platforms>
<platform>Vista</platform>
<platform>XP</platform>
</platforms>
<files>
<file>firefox/win32/Firefox Setup 2.0.0.4.exe</file>
</files>
<source>http://www.mozilla-europe.org/en/products/firefox</source>
<notes></notes>
</pkg>
</pkgs>
</application>


What i want to display from here is a tree which looks like:

+Firefox
|------2.0.0.6
|------2.0.0.5
|------2.0.0.4

ie

+<appname>
|-------<version>
|-------<version>
|-------<version>

quite simple really. Of course there may be more <applications> in the
document. I've tried various ways of creating another xmlList out of
this but no avail. Also i've supplied a labelFunction() to try to
display the right thing but nothing.

It seems only examples out there are where the text to display is an
attribute of a really simple structure like this:

<node label="Mail Box">
<node label="Inbox">
<node label="Marketing"/>
<node label="Product Management"/>
<node label="Personal"/>
</node>
<node label="Outbox">
<node label="Professional"/>
<node label="Personal"/>
</node>
<node label="Spam"/>
<node label="Sent"/>
</node>

(http://examples.adobe.com/flex2/inproduct/sdk/explorer/explorer.html
- Tree example). I still can't seem to get what i want from my XML
above.

Any ideas or examples please.

Thanks

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to