Kenneth Kawamoto
Thu, 27 Aug 2009 02:20:36 -0700
With the OP example,
trace(_co...@instance);
...should not generate an error but you'd get an error with:
trace(_conf.(@instance == "boo"));
...so instead this should be used:
trace(_conf.(attribute("instance") == "boo"));
Kenneth Kawamoto
http://www.materiaprima.co.uk/
Steven Sacks wrote:
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