<p>Is there a easy way to do this? Or do I have to parse the file and do some search/replacing on my own?</p>

<p>The ideal would be something like:</p>

<pre><code>var myXML: XML = ???; // ... load xml data into the XML object

myXML.someAttribute = newValue; 
</code></pre>

Attributes are accessible in AS3 using the
```
@
```
prefix.
For example:
```
```
var myXML:XML = <test name="something"></test>;
trace(myXML.@name);
myXML.@name = "new";
trace(myXML.@name);
```
```
Output:
```
```
something
new
```
```