} else if (node.getName().equals(ARMOR)) { totalArmor = Integer.parseInt(node.getAttribute(POINTS));
    private void parseNode(ParsedXML node) throws EntityLoadingException {        if (!node.getTypeName().equals("tag")) {            // We only want to parse element nodes, text nodes            //  are implicitly parsed when needed.            return;        }        Enumeration children = node.elements();        if (node.getName().equals(NAME)) {            name = ((ParsedXML)children.nextElement()).getContent();        } else if (node.getName().equals(MODEL)) {            model = ((ParsedXML)children.nextElement()).getContent();        } else if (node.getName().equals(VARIANT)) {            variant = ((ParsedXML)children.nextElement()).getContent();        } else if (node.getName().equals(TECHNOLOGY)) {            techBase = ((ParsedXML)children.nextElement()).getContent();            rulesLevel = node.getAttribute(LEVEL);        } else if (node.getName().equals(TONNAGE)) {            tonnage = ((ParsedXML)children.nextElement()).getContent();        } else if (node.getName().equals(TYPE)) {            chassisConfig = ((ParsedXML)children.nextElement()).getContent();        } else if (node.getName().equals(OMNI)) {            podSpace = node.getAttribute(POD_SPACE);        } else if (node.getName().equals(WALK)) {            walkMP = ((ParsedXML)children.nextElement()).getContent();        } else if (node.getName().equals(JUMP)) {            jumpMP = ((ParsedXML)children.nextElement()).getContent();        } else if (node.getName().equals(HEAT_SINKS)) {            if (((ParsedXML)children.nextElement()).getContent().equals(DOUBLE)) {                dblSinks = true;            } else {                dblSinks = false;            }            heatSinks = node.getAttribute(COUNT);        } else if (node.getName().equals(MOUNTED_ITEM)) {            if (node.getAttribute(REAR_MOUNTED).equals(TRUE)) {                isRearMounted[Integer.parseInt(node.getAttribute(ITEM_INDEX))] = true;            } else {                isRearMounted[Integer.parseInt(node.getAttribute(ITEM_INDEX))] = false;            }            if (node.getAttribute(IS_SPREAD).equals(TRUE)) {                            isSplit[Integer.parseInt(node.getAttribute(ITEM_INDEX))] = true;            } else {                isSplit[Integer.parseInt(node.getAttribute(ITEM_INDEX))] = false;            }        } else if (node.getName().equals(LOCATION)) {            int loc = -1;            int i = 0;            if (node.getAttribute(NAME).equals("LA") || node.getAttribute(NAME).equals("FLL"))                loc = Mech.LOC_LARM;            else if (node.getAttribute(NAME).equals("RA") || node.getAttribute(NAME).equals("FRL"))                loc = Mech.LOC_RARM;            else if (node.getAttribute(NAME).equals("LT"))                loc = Mech.LOC_LT;            else if (node.getAttribute(NAME).equals("RT"))                loc = Mech.LOC_RT;            else if (node.getAttribute(NAME).equals("CT"))                loc = Mech.LOC_CT;            else if (node.getAttribute(NAME).equals("H"))                loc = Mech.LOC_HEAD;            else if (node.getAttribute(NAME).equals("LL") || node.getAttribute(NAME).equals("RLL"))                loc = Mech.LOC_LLEG;            else if (node.getAttribute(NAME).equals("RL") || node.getAttribute(NAME).equals("RRL"))                loc = Mech.LOC_RLEG;            if (loc == -1)                throw new EntityLoadingException("   Bad Mech location");            while (children.hasMoreElements()) {                ParsedXML critSlotNode = (ParsedXML)children.nextElement();                critData[loc][i][0] = ((ParsedXML)critSlotNode.elements().nextElement()).getContent();                critData[loc][i++][1] = critSlotNode.getAttribute(ITEM_INDEX);            }        } else if (node.getName().equals(ITEM_DEFS)) {            return; // don't need item defs section of xml        } else if (children != null) {            // Use recursion to process all the children            while (children.hasMoreElements()) {                parseNode((ParsedXML)children.nextElement());            }         }    }