Adobe Flex – Filter XML data using E4X
Posted on : 31-03-2009 | By : Michael Fitchett | In : Flex, Quick Tips
2
You have imported your data using either an HTTPService, Web Service or some other means. Great! now how do you filter and sort the data? Using E4X of course! Lets get started.
1st. Switch the resultFormat on your HTTPService or Web Service by adding the following property resultFormat=”e4x” to your tag:
<!-- HTTPService --> <mx:HTTPService id='data' resultFormat="e4x"/> <!-- Web Service --> <mx:WebService id="wsData" wsdl="http://www.domain.com/Service.asmx?WSDL" showBusyCursor="true"> <mx:operation name="getData" resultFormat="e4x">



