Is ther an equivalent to SetAttribute()

I am assembling a XML object from an associative array using the e4x standards. One thing that i coudnt figure out is how to set the attributes of an xml node in an xml object. Javascript has something like xmlnode.setattribute(attributename,attributevalue). … is there anything similar in as3??

Any hint would be appreciated…