protected Element getElement(String name, int id) {
		NodeList dList = doc.getElementsByTagName(name);
		for (int i = 0; i < dList.getLength(); i++) {
			if (Integer.parseInt(dList.item(i).getAttributes()
					.getNamedItem("id").getTextContent()) == id) {
				return (Element) dList.item(i);
			}
		}
		System.out.println("Oh no! No " + name + " was found with an id of "
				+ id);
		return null;
	}