Convert a Job from/to xml.