# Can someone write a php script to write to a XML document in the following format

**URL:** <https://forum.kirupa.com/t/can-someone-write-a-php-script-to-write-to-a-xml-document-in-the-following-format/192526>\
**Category:** programming\
**Created:** [June 29, 2006, 4:26am UTC](https://forum.kirupa.com/t/can-someone-write-a-php-script-to-write-to-a-xml-document-in-the-following-format/192526 "2006-06-29T04:26:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xearo](https://avatars.discourse-cdn.com/v4/letter/x/9fc29f/32.png) [@xearo](https://forum.kirupa.com/u/xearo)\
**Post date:** [June 29, 2006, 4:26am UTC](https://forum.kirupa.com/t/can-someone-write-a-php-script-to-write-to-a-xml-document-in-the-following-format/192526/1 "2006-06-29T04:26:17Z")

</div>

Hi

i have a form that once filled in needs to update a XML document

can anyone out there write this for me ??

basically i have a news ticker that reads a XML document to get its information.

Now i need to be able to update the XML document via a HTML Form

the xml document is formatted in the following way

\<?xml version=“1.0” encoding=“utf-8” standalone=“yes”?\>  
\<images\>  
\<item\>  
\<news\>test this\</news\>  
\<url\>[www.google.com](http://www.google.com)\</url\>  
\</item\>  
\<item\>  
\<news\>News item 2\</news\>  
\<url\>[http://www.news](http://www.news) item 2.com\</url\>  
\</item\>  
\</images\>

if anyone could help i would greatly appreciate it!  
Cheers
