Fellow students are supposed to review and tell what my code is doing for a grade, this is why I'm asking on here first. I want to see if its clear enough.        public class SpellParser {private static final String SPELL_PACKAGE_LOCATION = edu.swosu.wordcraft.spells.;         private Document dom;         public SpellParser() {                 setUpDom();         }            public void setUpDom(){    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();    try {        DocumentBuilder docBuilder = dbf.newDocumentBuilder();        dom = docBuilder.parse(resources/Spells.xml);    } catch(Exception e) {         e.printStackTrace();     }}public void parse(){    //get the root element    Element docEle = dom.getDocumentElement();    //get a nodelist of elements    NodeList nl = docEle.getElementsByTagName(spell);    if(nl != null && nl.getLength() > 0) {        for(int i = 0 ; i < nl.getLength();i++) {            //get the spell element            Element el = (Element)nl.item(i);            //get the Employee object            Spell s = getSpell(el);            //add it to list            Spell.addSpell(s);        }    }}
SpellParser for a text-based RPG
java;game