I want to query for a list of all cars that have option #200. Here's what I've tried.
var list:XMLList = cars.car.(options.option.@id = 200) // returns nothing
var list:XMLList = cars.car.options.option.(@id = 200) // returns option elements, not car elements of course
var list:XMLList = cars.car.options.option.(@id = 200).parent().parent() // throws an error
How can I get the cars? I've also tried getting the list of matching option elements, then manually looping over them and adding their parents to a new XMLListCollection... but performance was very bad (lots of elements)