var m_xml:XML = <note></note>;
m_xml['@final-note']  = "8";

You are just bumping up against syntax and reserved word issues.
final is a reserved word and the hyphen is not allowable when doing 
e4x operations inline.

The above syntax should work for you,
Mike

--- In [email protected], "mihksoft" <mihks...@...> 
wrote:
>
> Hi!
> 
> I have an XML
> var m_xml:XML = <note></note>;
> I want to add the attribute final-note to this XML to result
> <note final-note="8"></note>.
> 
> I didn't find how to add attributes like this.
> I tried m_x...@final-note = "8" but is not working.
> 
> Any idea?
> 
> Thanks,
> Mihai
>


Reply via email to