Quick Question: Saving form data into .xml with PHP

Hi all experts,

I want to make a multiple selection form that allow user to upload picture, enter picture name,caption and url. I know how to make the form and i’m working on the uploading part. Just i need to know its how to generate all the data into xml once the user click submit button. Thanks for everyone help. :beam: Here is the xml output i need to generate:


<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
<pic>
 
  <image>http://www.test.com/img/25.jpg</image>
 
  <caption>webcaption>
 
  <url>http://www.test.com</url>
 
</pic> 
<pic>
 
  <image>http://www.test.com/img/26.jpg</image>
 
  <caption>web_pagecaption>
 
  <url>http://www.test.com/wp</url>
 
</pic> 
 
<pic>
.....
</pic>
</images>