Hi guys

I have this XML returned to my app:
<menu>
<categoria nome="cat1">
<item>item 1</item>
<item>item 2</item>
<item>item 3</item>
</categoria>

<categoria nome="cat2">
<item>item 1b</item>
<item>item 2b</item>
<item>item 3b</item>
</categoria>

<categoria nome="cat3">
<item>item 1c</item>
<item>item 2c</item>
<item>item 3c</item>
</categoria>
</menu>


this is retrieved by an HTTPService
<mx:HTTPService id="xmlMenu" url="" method="POST" useProxy="false" result="handler()" resultFormat="e4x" />

How to manipulate the XML data in then result handler using action script?
- show nodes length
- get the atribute of node categoria
- get to the values of node item

i've tried
xmlMenu.lastResult.menu.length.toString()
xmlMenu.lastResult.menu.categoria[0].length.toString()
[EMAIL PROTECTED]
xmlMenu.lastResult.menu.categoria[0].item[0]

nothing happens

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to