code: private Element toElement(ScheduleTask task) {
  	Element el = doc.createElement("task");
  	setAttributes(el, task);
  	return el;
      }
docs: translate a schedule task object to a XML Element
  
  @param task schedule task to translate
  @return XML Element