public void setCheckType(String checkType) {
		this.checkType = checkType;
		try {
			if (checkType.equals(XMLChecker.VALID)) {
				reader.setFeature("http://xml.org/sax/features/validation", true);
			} else {
				reader.setFeature("http://xml.org/sax/features/validation", false);			
			}
		} catch (Exception e) {
			System.out.println("Error setting up parser.");
			e.printStackTrace();
		}
	}