Node n = nl.item(i);
// and get the name attribute for this category
NamedNodeMap curAtt = n.getAttributes();
Node curNode = curAtt.getNamedItem("name");
currentCategory = curNode.getNodeValue();
Category ec = new DefaultCategory(currentCategory);
configuration.setCategory(ec);
curNode = curAtt.getNamedItem("extends");
if ( curNode != null ) {
ec.setExtendsCategory(curNode.getNodeValue());
}
// now we process all children for this category
for (Node child = n.getFirstChild(); child != null; child = child.getNextSibling()) {
// we take the tag name as property name
if ( child.getNodeType() == 1 && child.getFirstChild() != null ) {