public void parseXmlFile(String file){
		
		//get the factory
		DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
		try {
			//Using factory get an instance of document builder
			dbf.setValidating(true);
			dbf.setIgnoringElementContentWhitespace(true);
			dbf.setCoalescing(true);
			DocumentBuilder db = dbf.newDocumentBuilder();
			//parse using builder to get DOM representation of the XML file
			//TODO: choose which xml to load 
			dom = db.parse(file);
		}
		catch(ParserConfigurationException pce) {
			pce.printStackTrace();
		}
		catch(SAXException se) {
			se.printStackTrace();
		}
		catch(IOException ioe) {
			ioe.printStackTrace();
		}
		//get the root element
		Element docEle = dom.getDocumentElement();
		NodeList nl = docEle.getElementsByTagName("round");
		if(nl != null && nl.getLength() > 0) {
			nRounds = nl.getLength();
			NodeList qsnl = ((Element)nl.item(round)).getElementsByTagName("questionset");
			if(qsnl != null && qsnl.getLength() > 0) {
				nQSets = qsnl.getLength();
				NodeList inl = ((Element)qsnl.item(qSet)).getElementsByTagName("item");
				if(inl != null && inl.getLength() > 0) {
					nItems = inl.getLength();
				}
			}
		}

		activeNodeStack.push(docEle);
		System.out.println(activeNodeStack);
	}