public  void parseFile(String xmlFile, String dtdFile)
			throws IOException {
		BufferedReader br = new BufferedReader(new FileReader(path + xmlFile+".xml"));
		BufferedReader br1 = new BufferedReader(new FileReader(path + dtdFile+".dtd"));
		FileWriter fw = new FileWriter(path + "temp111.xml");
		BufferedWriter bw = new BufferedWriter(fw);

		String s="";
		
		String dtd="";
		String once;
		dtd+="<!DOCTYPE table [";
		while ((once = br1.readLine()) != null) {
			dtd =dtd+"\n"+ once;
		}
		dtd += "]>";
		
		
		while ((once = br.readLine()) != null) {
			s=s+once+"\n";
		}
		s=s.substring(54);
		
		s="<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?> \n "+dtd+" \n "+s;
		s=s.replaceAll("><", "> <");
		bw.write(s);
		bw.close();
		boolean valid = true;
		try {
			validateXMLFile(path + "temp111.xml");
		} catch (ParserConfigurationException e) {
			//System.out.println(1);
			valid = false;
		} catch (FileNotFoundException e) {
			//System.out.println(2);
			valid = false;
		} catch (SAXException e) {
			valid = false;
			//System.out.println(3);
		} catch (IOException e) {
			valid = false;
			//System.out.println(4);
		}

		File delete = new File(path + "temp111.xml");
		delete.delete();
		//System.out.println("Validation is " + valid);
	}