E4X isn’t perfect but improvements have been made.

Just tried filtering states using Actionscript 3′s new E4X xml schema.  If you try filtering your xml nodes based on Attributes, you can run into issues if the attribute lists aren’t consistent among sibling nodes.  By placing your code in try-catch statement to prevent any messyness.  IE…..

try{

_xml.datapoints.data.(@state==”NY”);

}catch(e:Error){

trace(“error occured”);

}