# Adding content to XML via PHP?

**URL:** https://forum.kirupa.com/t/adding-content-to-xml-via-php/138371
**Category:** Uncategorized
**Created:** [February 22, 2005, 4:28am UTC](https://forum.kirupa.com/t/adding-content-to-xml-via-php/138371 "2005-02-22T04:28:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![hey\_suburbia](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@hey\_suburbia](https://forum.kirupa.com/u/hey_suburbia)
#### Post date: [February 22, 2005, 4:28am UTC](https://forum.kirupa.com/t/adding-content-to-xml-via-php/138371/1 "2005-02-22T04:28:13Z")

</div>

I have a working XML document that I edit manually, which in turns updates a flash site.

I want to create an online post/delete page. So I can just go to a specific site (not password protected) and just add/delete news stories from XML document.

Here is my XML code:

```auto
<?xml version='1.0' encoding='utf-8'?>
<news>
   <source id='Latest News:'>
   
<story><br /><b><u><a href='' target='_blank'>June 10th</a></u></b><br />Content </story>
	  
<story><br /><b><u><a href='' target='_blank'>June 23rd</a></u></b><br />Content</story>
	  
      
   </source>
</news>

```
