Solved

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

Posted on 2011-03-13
1
316 Views
Last Modified: 2012-06-27
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
Comment
Question by:C_Schlottfeldt
1 Comment
 
LVL 17

Accepted Solution

by:
deepanjandas earned 250 total points
ID: 35124978
Using appendChild.

Warm Regards
Deepanjan Das
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
A Short Story about the Best File Recovery Software – Acronis True Image 2017
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now