convert xml string in data file "events.php" to an xml file

I want to convert the string in xml format in my events.php file to an xml file. I want to have both the database saving and loading for my desktop scheduler and database saving and xml file loading for my Mobile scheduler. I am doing this because I can’t seem to load data into mobile scheduler, using the same connectors as the desktop version.

Any help will be highly appreciated.

Data formats of mobile and desktop schedulers are the same.
Just be sure that in mobile scheduler you are using second parameter of load command, like next

scheduler.load(url, "scheduler");