# FlashMX -\> XML

**URL:** <https://forum.kirupa.com/t/flashmx-xml/9956>\
**Category:** programming\
**Created:** [December 21, 2002, 6:17pm UTC](https://forum.kirupa.com/t/flashmx-xml/9956 "2002-12-21T18:17:07Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![RvGaTe](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rvgate/32/126_2.png) [@RvGaTe](https://forum.kirupa.com/u/RvGaTe)\
**Post date:** [December 21, 2002, 6:17pm UTC](https://forum.kirupa.com/t/flashmx-xml/9956/1 "2002-12-21T18:17:07Z")

</div>

i got an huge problem…

i made an small forum, with all the data inside an xml file… i can read all info clean and nice, but when it comes to writing to the xml file, im getting stuck…

doz anyone knows how to add childnodes and nodeName’s to an XML file with FlashMX , without using PHP, ASP or any other kind of scripting ?

i want to add to this file:  
[http://members1.chello.nl/~j.m.vanaerle/sss/data.xml](http://members1.chello.nl/~j.m.vanaerle/sss/data.xml)  
lets say, i want to add an reply to the 1th thread, how do i let it happen, that it adds the info inside an new “reply” tag after the start node ???

plz help…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 22, 2002, 6:23pm UTC](https://forum.kirupa.com/t/flashmx-xml/9956/2 "2002-12-22T18:23:19Z")

</div>

guys, i really need to know this… plz…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 22, 2002, 6:38pm UTC](https://forum.kirupa.com/t/flashmx-xml/9956/3 "2002-12-22T18:38:25Z")

</div>

I would love to help you out, but I have no clue about this subject.

If you want to dynamically edit your XML file, that sounds like it does require PHP or mySQL though.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 22, 2002, 6:43pm UTC](https://forum.kirupa.com/t/flashmx-xml/9956/4 "2002-12-22T18:43:28Z")

</div>

there are functions in flash like:

XML.createElement  
XML.createTextNode  
XML.insertBefore  
XML.parseXML  
XML.removeNode  
XML.send

i mean, those HAVE to be for editing and creating, but HOW do i use those? i cant find any tutorial …

i really need to know :\*(

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 22, 2002, 6:45pm UTC](https://forum.kirupa.com/t/flashmx-xml/9956/5 "2002-12-22T18:45:53Z")

</div>

Oh, no clue.

It took me like two weeks just to learn how to parse an XML file into Flash. That was a while ago, I figured I was getting too ahead of myself so I stopped learning that.

I should take it up again though, I think I have a good enough base for it now.

Perhaps if h88 or david pop their heads into this thread they could help you out. They are the only people I know here that would know anything about the subject. There are probably others, I just don’t know who.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 22, 2002, 6:53pm UTC](https://forum.kirupa.com/t/flashmx-xml/9956/6 "2002-12-22T18:53:12Z")

</div>

took me an full week to get an clue about firstChild, Nodes etc,

to me an total of 1,5 weeks to learn the xml parser, 1th week (last year), with an book, the other days (this week) without…

this is my first project with xml data in it,

anyways, can you give those ppl an call for me? or should i wait a few days… 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 22, 2002, 6:55pm UTC](https://forum.kirupa.com/t/flashmx-xml/9956/7 "2002-12-22T18:55:43Z")

</div>

You can send them a PM. Look up their names through the Members button at the top of this forum on the right side. then when you find them click on their name to open their profile then click “Send a Personal Message”.

They are david and h88

h88 is on the forum now.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 23, 2002, 9:38pm UTC](https://forum.kirupa.com/t/flashmx-xml/9956/8 "2002-12-23T21:38:30Z")

</div>

I’ve done quite a few things in XML and Flash 5 and MX. What’s your problem?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 24, 2002, 11:36am UTC](https://forum.kirupa.com/t/flashmx-xml/9956/9 "2002-12-24T11:36:15Z")

</div>

i want to add nodes and info to the xml file…

not the xml object, but the FILE… is that possible with flash ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 24, 2002, 1:09pm UTC](https://forum.kirupa.com/t/flashmx-xml/9956/10 "2002-12-24T13:09:53Z")

</div>

> \*Originally posted by RvGaTe \*  
> \*\*i want to add nodes and info to the xml file…

not the xml object, but the FILE… is that possible with flash ? \*\*

The only way is php, post the information into the php script, and let the php script create the file.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 24, 2002, 1:11pm UTC](https://forum.kirupa.com/t/flashmx-xml/9956/11 "2002-12-24T13:11:01Z")

</div>

im an n00b with php, do you have an tutorial somewere to parse or edit an xml file with php ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 25, 2002, 9:00pm UTC](https://forum.kirupa.com/t/flashmx-xml/9956/12 "2002-12-25T21:00:46Z")

</div>

[http://www.flashandxml.com/](http://www.flashandxml.com/)  
buy it, great book!

or check [www.flash-bd.com](http://www.flash-bd.com)
