[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 344
  • Last Modified:

How to create xml tag dinamicaly and populate a xml file in AS3/Flex?

Hi,

I want to create an xml tag dinamicaly inside a node during runtime and then append some values to them. The thing is: I can´t find a way to create diferent nameTags during runtime (there´s lots of them) to receive the data i already got in a Arraylist. Can anyone please help me accomplish this?

Something like this:


for (var i:int=0; i < 100; i++){
myXML.source.item.newTag = anArrayColletion.getItemAt(i).item //here i want instead of "newTag", to create dinam100 diferent tags named tag1, tag2, tag3 and so on, that eacch one receives the correspondent arraycollection item.

}

Open in new window

0
C_Schlottfeldt
Asked:
C_Schlottfeldt
1 Solution
 
deepanjandasCommented:
Using appendChild.

Warm Regards
Deepanjan Das
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now