I keep getting error while trying to create an XML file
If you take a look in the allowed XML Attribute name characters, you'll see that spaces are in fact not present so are illegal
so instead of
empleadoEle.setAttribute("Tipo de empleado: ", e.getTipoEmp());
You could do
empleadoEle.setAttribute("tipo", e.getTipoEmp());