Opening, editing, and saving XML files

Hello All,

I am trying to write a script in php that will enable me to edit and save .xml files on my server.

I have tried using:

fopen($file, "w+");

for opening the xml files into an editabe text box, but this method seems to only work on .txt and .html files. When I try loading an xml file using this method, it gives me an “xsl error”.

Any help on how I might be able to fix my problem would be greatly appreciated! Thanx in advance.

Kind Regards,