flashcoders  

Re: [Flashcoders] empty XML Attributes..

Steven Sacks
Wed, 26 Aug 2009 18:07:02 -0700

You will get runtime errors when attempting to access an attribute that isn't there. The proper way to check for existence and length of an attribute is to use the .attributes() syntax as such:

if (node.attribute("instance").length() > 0)
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders