Have you tried to do it like this:
xml.books.book.attribute(arr[i]) = arr[i+1];
What error number are you getting?
Yes. I tried that and it is giving me teh following error -
1105: Target of assignment must be a reference value.
Please let me know how to achieve this. I am a newbie to flex and I desparately need to get thsi working. I have checked the Livedocs but I did not find anything useful.
I think you are trying to assign value = value, which is not possible , you have to assign like variable = value.
Try this xml.books.book.attribute(i) = arr(i+1);