Runs the test case.
Document doc;
NodeList elementList;
Element lastEmployee;
NodeList lastempList;
Node child;
String childName;
java.util.List result = new java.util.ArrayList();
java.util.List expectedResult = new java.util.ArrayList();
expectedResult.add("employeeId");
expectedResult.add("name");
expectedResult.add("position");
expectedResult.add("salary");
expectedResult.add("gender");
expectedResult.add("address");
doc = (Document) load("staff", false);
elementList = doc.getElementsByTagName("employee");
lastEmployee = (Element) elementList.item(4);
lastempList = lastEmployee.getElementsByTagName("*");
for (int indexN1006A = 0; indexN1006A < lastempList.getLength(); indexN1006A++) {
child = (Node) lastempList.item(indexN1006A);
childName = child.getNodeName();
result.add(childName);
}
assertEquals("tagNames", expectedResult, result);