Well, there's a number of important pieces of information missing from your question, but assuming that the name field and getter/setter methods reside in the Employee object and that the name attribute exists on the same node as the id attribute, then the following code should work:
for (int i = 0; i < nodeList.getLength(); i++)
{
Element e = (Element) nodeList.item(i);
Employee employee = new Employee();
employee.setId(Integer.parseInt(e.getAttribute(ATTR_ID)));
employee.setName(e.getAttribute(NAME)));
...
}