# Modifying an existing XML file

**URL:** <https://forum.kirupa.com/t/modifying-an-existing-xml-file/299992>\
**Category:** programming\
**Created:** [November 13, 2009, 9:21pm UTC](https://forum.kirupa.com/t/modifying-an-existing-xml-file/299992 "2009-11-13T21:21:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mastermode](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@mastermode](https://forum.kirupa.com/u/mastermode)\
**Post date:** [November 13, 2009, 9:21pm UTC](https://forum.kirupa.com/t/modifying-an-existing-xml-file/299992/1 "2009-11-13T21:21:33Z")

</div>

Hello there!

This is very unfamiliar terrain for me, I don’t know a lot about PHP.

I’ve recently used some of it’s abilities to create an XML file, based on some XML data that I would have sent from Flash via an XML object. But every time the XML would get modified, I would have had Flash send the whole data, overwriting the existing content.

Now, I have this question (which I know probably is a noob question, but meh…): If I send an XML Node from Flash, and use PHP to catch it, can I open the XML file, alter its content (i.e concatenating the new node) and then close the file, all of this within the PHP script?

I hope I haven’t wasted your time with this.

Cheers!
