Solved

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

Posted on 2011-03-13
1
317 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 customer recently asked me about anti-malware and the different deployment options available for his business. Daily news about cyberattacks, zero-day vulnerabilities, and companies that suffered a security breach made him wonder if the endpoint a…
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

914 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

14 Experts available now in Live!

Get 1:1 Help Now