AW: [jdom-interest] (no subject)

Benjamin Broll bb at bjamin.de
Sun Nov 26 13:02:44 PST 2000


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




More information about the jdom-interest mailing list