FlashMX -> XML

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
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…

guys, i really need to know this… plz…

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.

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 :*(

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.

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… :stuck_out_tongue:

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.

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

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

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

*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.

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

http://www.flashandxml.com/
buy it, great book!

or check www.flash-bd.com