I'd like to know if it's possible to filter using two values or more. In this example:
var destinations:XML = <destinations>
<destination location="japan">
<exchangeRate>400</exchangeRate>
<placesOfInterest>Samurai History</placesOfInterest>
</destination>
<destination location="japan">
<exchangeRate>60</exchangeRate>
<placesOfInterest>Samurai History</placesOfInterest>
</destination>
<destination location="australia">
<exchangeRate>140</exchangeRate>
<placesOfInterest>Surf and BBQ</placesOfInterest>
</destination>
<destination location="peru">
<exchangeRate>300</exchangeRate>
<placesOfInterest>Food</placesOfInterest>
</destination>
<destination location="france">
<exchangeRate>300</exchangeRate>
<placesOfInterest>Food</placesOfInterest>
</destination>
</destinations>;
//FILTER -------------------
var filtered:XMLList = destinations.destination.(placesOfInterest != "Food", exchangeRate != 300);
trace(filtered);
It doesn't work if there are more nodes with the same values. It shows first all the nodes without "Food" and after that all the nodes without "300". So, it shows some "Food" results.
Is there an easy way for filtering two or 3 values, say Name, Surname? Or name, surname and company.
Thanks in advance