converts scheduler's data into the XML format
var str = scheduler.toXML();
The method requires the serialize plugin to be enabled.