How can we add attributes dynamically to any XML nodes?
I tried doing following
[AS]
// create an XML document
var doc:XML = new XML();
var element1:XMLNode = doc.createElement(“element1”);
element1.attributes.push(“abc”);
trace(doc);
// output:
<element1><element2 /><element3 /></element1>
[/AS]
Is attributes read-only property?
But it does not work.