Thanks - that gives me the values of the attribs - but not the attrib names:
if I have: <tag a="1" b="2" c="3"/> I am getting: 1,2,3 I am trynig to get: a,b,c Anyway to do that? ________________________________________ From: [email protected] [[email protected]] On Behalf Of allandt bik-elliott (thefieldcomic.com) [[email protected]] Sent: Monday, November 08, 2010 9:00 AM To: Flash Coders List Subject: Re: [Flashcoders] Counting xml attributes oops var listAttribs:XMLList = myxml.t...@*; var noOfAttribs:int = listAttribs.length(); var attrib:XML; for (var i:int = 0; i < noOfAttribs; i++) { attrib = listAttribs[i]; } On 8 November 2010 13:58, allandt bik-elliott (thefieldcomic.com) < [email protected]> wrote: > yep > > var listAttribs:XMLList = myxml.t...@*; > trace(listAttribs.length()); > > best > a > > > On 8 November 2010 13:42, Lehr, Theodore <[email protected]>wrote: > >> Is there a way to return the attributes name of an xml node? >> >> So if I have: >> >> <tag a="1" b="2" c="3"/> >> >> I would get back: >> >> a, b, c >> >> _______________________________________________ >> Flashcoders mailing list >> [email protected] >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

