# Editing/saving xml in php form

**URL:** <https://forum.kirupa.com/t/editing-saving-xml-in-php-form/251847>\
**Category:** programming\
**Created:** [February 13, 2008, 6:50am UTC](https://forum.kirupa.com/t/editing-saving-xml-in-php-form/251847 "2008-02-13T06:50:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhiitechie](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@abhiitechie](https://forum.kirupa.com/u/abhiitechie)\
**Post date:** [February 13, 2008, 6:50am UTC](https://forum.kirupa.com/t/editing-saving-xml-in-php-form/251847/1 "2008-02-13T06:50:56Z")

</div>

I want a php script that takes data from a mysql database brings it to form for edition  
stores the final result as xml.i have taken input to the database in Rss xml format,and i want that to edited in a form and saved into folder as xml file  
Here is the sample would be xml file

\<?xml version=“1.0” encoding=“iso-8859-1”?\>  
\<rss version=“2.0”\>  
\<channel\>  
\<title\>Cnnibn\</title\>  
\<link\>[http://www.orkut.com](http://www.orkut.com)\</link\>  
\<description\>\</description\>  
\</channel\>

\<item\>  
\<title\>Three farmers die of hunger in Kacch,Rajastahan\</title\>  
\<link\>[http://www.orkut.com](http://www.orkut.com)\</link\>  
\<description\>Yesterday three farmers in drought plagued\<br/\> region of Kacch died of hunger\<br/\>leaving their family members behind\<br/\>  
Government taken the matter upto to the center\<br/\>Demands Centarl interference\</description\>  
\</item\>  
\<item\>  
\<title\>Imprtant artifacts unearthed in Mohejo Drao\</title\>  
\<link\>[http://www.orkut.com](http://www.orkut.com)\</link\>  
\<image\>image url\</image\>  
\<description\>Yesterday three farmers in drought plagued\<br/\> region of Kacch died of hunger\<br/\>leaving their family members behind\<br/\>  
Government taken the matter upto to the center\<br/\>Demands Centarl interference\</description\>  
\</item\>

\</rss\>
