added toXML() function for Programswitch and DayProgram