Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Move Page left/Right based on Gesture Swipe 7 1,252
DropDownList Skin 5 1,259
Flex Mobile: Get Gps Coordinates 6 1,351
CheckBox inside itemRenderer issue 13 591
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…
How do we balance the user experience (UX) with reasonable security measures? It can be done, if you keep these fundamentals in mind.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

774 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