Saving XML content from Flash

I was wondering how I might be able to display XML in Flash (I know how to do this… http://www.kirupa.com/developer/actionscript/xmldataflash.htm) but then be able to edit and save those sections through PHP…

I’ve already looked at the News Editor, but that’s different… that’s just adding entries on top of each other. What I want to do is overwrite specific sections, and turn this:

  <?xml version="1.0" ?> 
  [-](http://www.kirupa.com/forum/#) <inventors>
   [-](http://www.kirupa.com/forum/#) <person>
     <name>Thomas Edison</name> 
    <comment>Inventor of many things such as the incandescent lightbulb.</comment>  
   </person>
  [-](http://www.kirupa.com/forum/#) <person>
     <name>Doug Engelbart</name> 
    <comment>Invented the mouse at the Stanford Research Institute</comment>  
   </person>
   </inventors>

into this:

  <?xml version="1.0" ?> 
  [-](http://www.kirupa.com/forum/#) <inventors>
   [-](http://www.kirupa.com/forum/#) <person>
     <name>Thomas Edison</name> 
    <comment>Inventor of many things such as the incandescent lightbulb.</comment>  
   </person>
  [-](http://www.kirupa.com/forum/#) <person>
     <name>**Mark Davis**</name> 
    <comment>**He didn't invent anything to my knowledge**</comment>  
   </person>
   </inventors>