I'm using PHP expat XML module.
We can use this module to parse xml file to get the content. But I just wondering if there is a function built in expat module
to add or generate/write xml file.
Like I have a list of address book in xml file. I would like to have people fill in a form and it will automatically add/generate
the input into the xml file.
I know I can do this using PHP built in function for file processing.
Like open the file and write it.
Since what I want to generate is actually xml data with tags. I have to add the tag format with users' data if I'm using PHP built in function for file processing.
I just wonder if there is a function in expat to generate xml file or if there is an easier way?