You'll have some problems, as the xml specifications do not allow hypens in
attribute names.  Some XML parsers are more forgiving on that rule than
others.

 

Its pretty trivial if you want to use a valid attribute name

var m_xml:XML = <note></note>;

m_x...@finalnote = 8;

________________________________________

Jeff Tapper> Senior Consultant

digital primates IT Consulting Group R

Phone: 847.824.7800, x222 | Fax: 847.655.2867

[email protected]

 

From: [email protected] [mailto:[email protected]]
On Behalf Of mihksoft
Sent: Tuesday, February 10, 2009 7:59 AM
To: [email protected]
Subject: [flexcomponents] XML attributes

 

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