private Element toElement(ScheduleTask task){
  Element el=doc.createElement("task");
  setAttributes(el,task);
  return el;
}

private Element toElement ( ScheduleTask task ) { Element el = doc . createElement ( "task" ) ; setAttributes ( el , task ) ; return el ; }
translate a schedule task object to a xml element
