Hi,
No its not a stupid question. But anyway you cannot modify an xml file without using fopen(), fgets() or fwrite() function because to modify the contents you first need to read the file so that means you need fopen() and fread() functions. Once you edit the contents you then again need to write them back to the file so you need fwrite() function.
So there is no way of do this without those functions 🙂
You can easily edit, delete or modify tags using php parsers. there is two types of parsers. SAX and DOM. SAX is much simple and it is the best for your purpose.. here is a link, go through it and if you have question then post them i will do my best to help you.
Please do some searching regarding php parsers.. there are lots of articles regarding that on the web.
Parser
Good luck.
Regards,
Niroshan