public XMLParser(String fileName){
		super();
		File schemaFile;
		Schema schema;
		Source xmlFile = new StreamSource(new File(fileName));
		SchemaFactory schemaFactory = SchemaFactory
		    .newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
		schemaFile = new File("bin/schema.xsd");
        try {
        	//load the schema into the parser
        	schema = schemaFactory.newSchema(schemaFile);
        } catch (SAXException e1) {
        	schema = null;
        	e1.printStackTrace();
        }
        //generate and run the validator
        Validator validator = schema.newValidator();
        try {
          validator.validate(xmlFile);
          System.out.println(xmlFile.getSystemId() + " is valid");
          System.out.println("Is Valid");
        } catch (SAXException e) {
          System.out.println(xmlFile.getSystemId() + " is NOT valid");
          System.out.println("Reason: " + e.getLocalizedMessage());
        } catch (IOException e) {
        	// TODO Auto-generated catch block
        	e.printStackTrace();
        }
		
		this.fileName = fileName;
	    parse(this.fileName);

	}