?
Solved

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

Posted on 2011-03-13
1
Medium Priority
?
333 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 17

Accepted Solution

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

Warm Regards
Deepanjan Das
0

Featured Post

The Ideal Solution for Multi-Display Applications

Check out ATEN’s VS1912 12-Port DP Video Wall Media Player at InfoComm 2017. Kerri describes how easy it is to design creative video walls in asymmetric layouts and schedule detailed playlists ahead of time with its advanced scheduling feature.

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…
New style of hardware planning for Microsoft Exchange server.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month12 days, 15 hours left to enroll

777 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