Absolutely. Now, AS2/1.5 alone does not support xpath, so you last line wont work like that. I have seen an AS library that provides Xpath, and have heard, via an accidental leak at MM that Flex 2.0 will have an xpath-like node location syntax.
With the current codebase, you can either let Flex convert your xml into an mx:Object, and then use dot notation to navigate within the data, or you can specify resultFormat="xml", and use the XML class members to manipulate the data. See the XML Class in the livedocs for the available members. Sorry, "getElementsByTagName" is not one of them. You willeither need to know the index of the node in the childNodes array, or loop through them to manually match your attribute or nodeName. Tracy -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Alberto Albericio Salvador Sent: Monday, October 17, 2005 6:50 AM To: [email protected] Subject: [flexcoders] Data service results format: VO or XML? Hello all, I have read some posts on how to pass data from the service tier to the Flex tier using VOs or arrays of VOs. I dont think it is a bad idea to use these objects but: Is it possible to return results in XML format and then bind parts of this XML "document" to Flex UI components like a datagrid, list, etc? This would be something like : // not real code 1) myDg.dataProvider = event.result.getElementsByTagName("prices") and then: columnName="PRICE" colomnName="another attr or subelement" ... 2) myList.dataProvider = event.result.getElementsByTagName("shops") and even more advanced : 3) myDg.dataProvider = event.result/[EMAIL PROTECTED] < 200] Thanks all -- Alberto Albericio Salvador Aura S.A. Seguros Departamento Informática -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

