Attributes from XML nodes

Just a quick question:
Is there anyway to get the number of attributes an xml node has.

I’m just not fond of the way you have to loop through an xml node ala
http://www.macromedia.com/devnet/flash/articles/tools_xmlobject.html

for (attr in this.childNodes*.attributes) {

}

Is there nothing like childNodes*.attributes.length???

cheers, Rich

:pope: - These smilies crack me up

According to the help files you could modify it as

counter = 0;
for (attr in this.childNodes*.attributes) {
    counter++;
}
trace(counter)

Thought that might be the only way to do it.
I was just hoping the attributes property would have a method to get the number of attributes for that node.

Cheers!
Daf :thumb: