Quick Tip: Test to see if an XML attribute is present
Today I received a question about how to check and see if an attribute is present into a XML node. I thought it wold be a good idea if I post the answer here in case someone else needs to do the same. This is the ActionScript code: if(node.@attributeName in node) { //the attribute is…