t = doc.createTextNode("\t")
root_element.appendChild(t)
t = doc.createElement('timer')
t.setAttribute("begin", str(timer.begin))
t.setAttribute("end", str(timer.end))
t.setAttribute("serviceref", str(timer.service_ref))
t = doc.createTextNode("\t")
root_element.appendChild(t)
t = doc.createElement('timer')
t.setAttribute("begin", str(timer.begin))
t.setAttribute("end", str(timer.end))
t.setAttribute("serviceref", str(timer.service_ref))