Creating XML files in PHP

Hi There,

First of all a very good morning to all of you~!

This is my first post in this forum!

Ok, Now here is my question,

XML --> Parse --> modify --> back to XML

There are topics in this forum about XML parsing using PHP, thats fine,

But what is need to do is to parse the XML using PHP, then do some modification and then create it back in a XML file. but i could not find any tutorial about Text (or) HTML to XML, if would be grateful to you, if you point some tutorials where i can find the information.

In a nut shell what i want to do is

Text (or) HTML —> XML