Hi Flex.

A.What method to assign/update the attribute value of XML object?



var testXML:XML = <testXML attr1="10" attr2="hello"/>;

[EMAIL PROTECTED] = 20;
1) It isn't sutiable because of I didn't konw what attribute is to
assign value.

2) But I have just attribute name with string value. For instance

var a:String = "attr1";
//testXML.attribute(a) = 20;  // It isn't assign!!!

???????????
?How to it?
???????????


Assume that we don't konw what attributes had come to assign. We have
just string of the attribute name to assign it.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to