# Is ther an equivalent to SetAttribute()

**URL:** <https://forum.kirupa.com/t/is-ther-an-equivalent-to-setattribute/246441>\
**Category:** flash\
**Created:** [December 11, 2007, 7:08am UTC](https://forum.kirupa.com/t/is-ther-an-equivalent-to-setattribute/246441 "2007-12-11T07:08:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![glidealong](https://avatars.discourse-cdn.com/v4/letter/g/da6949/32.png) [@glidealong](https://forum.kirupa.com/u/glidealong)\
**Post date:** [December 11, 2007, 7:08am UTC](https://forum.kirupa.com/t/is-ther-an-equivalent-to-setattribute/246441/1 "2007-12-11T07:08:49Z")

</div>

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…
