Try using the getChildren() method like:
List l = root.getChildren("student");
Iterator it = l.iterator();
Element student = null;
while (it.hasNext()) {
student = (Element) it.next();
String name = student.getChild("name").getContent();
// do more stuff here ...
}
HTH,
.bbr