Return to Snippet

Revision: 20570
at November 19, 2009 09:27 by forchid


Initial Code
Usage 1:

var hasAttribute:Boolean = node.hasOwnProperty("@myAttribute");


Usage 2:

var myList:XMLList = myXML.node.( hasOwnProperty( "@myAttribute" ) );


Usage 3:

if ("@myAttribute" in node) { ... }

Initial URL

                                

Initial Description

                                

Initial Title
Check if XML attribute exists

Initial Tags
xml

Initial Language
ActionScript 3