public void guiForOpeningAndCheckingLogFileForXML() {
		frmOpeningAndCheckingLogFileForXML.setSize(400, 300);
		frmOpeningAndCheckingLogFileForXML
				.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frmOpeningAndCheckingLogFileForXML.setVisible(true);
		frmOpeningAndCheckingLogFileForXML
				.add(pnlOpeningAndCheckingLogFileForXML);
		frmOpeningAndCheckingLogFileForXML.setLocationRelativeTo(null);
		frmOpeningAndCheckingLogFileForXML
				.setTitle("XML Tool: Checking for XML in log file");

		pnlOpeningAndCheckingLogFileForXML.setLayout(null);
		pnlOpeningAndCheckingLogFileForXML.setVisible(true);
		pnlOpeningAndCheckingLogFileForXML
				.add(btnForExecutingWriteOnlyXmlToTxtFileFromLogFile);
		pnlOpeningAndCheckingLogFileForXML
				.add(btnForCancellingAndMovingBackToMainHomeScreen);
		pnlOpeningAndCheckingLogFileForXML.add(btnForSelectingFileForExecuting);
		pnlOpeningAndCheckingLogFileForXML.add(txtPathOfFile);
		pnlOpeningAndCheckingLogFileForXML
				.add(lblOpenAsOpeningAndCheckingLogFileForXML);
		pnlOpeningAndCheckingLogFileForXML.add(lblDone);

		btnForExecutingWriteOnlyXmlToTxtFileFromLogFile.setBounds(100, 200, 80,
				30);
		btnForExecutingWriteOnlyXmlToTxtFileFromLogFile.setVisible(false);
		btnForCancellingAndMovingBackToMainHomeScreen.setBounds(200, 200, 80,
				30);
		btnForCancellingAndMovingBackToMainHomeScreen.setVisible(true);
		btnForSelectingFileForExecuting.setBounds(300, 75, 80, 30);
		btnForSelectingFileForExecuting.setVisible(true);
		txtPathOfFile.setBounds(80, 75, 200, 30);
		txtPathOfFile.setEditable(false);
		lblOpenAsOpeningAndCheckingLogFileForXML.setBounds(10, 75, 80, 30);

		/*
		 * Button Listener for running WriteOnlyXmlToTxtFileFromLogFile() Method
		 */
		try {
			btnForExecutingWriteOnlyXmlToTxtFileFromLogFile
					.addActionListener(new ActionListener() {

						@Override
						public void actionPerformed(ActionEvent e) {
							// TODO Auto-generated method stub
							
							WritingXmlFromLogFileToTxtFile objWritingXmlFromLogFileToTxtFile = new WritingXmlFromLogFileToTxtFile();
							objWritingXmlFromLogFileToTxtFile.writeOnlyXmlToTxtFileFromLogFile();
							
							MainHomePageForApplication objMainHomePageForApplication = new MainHomePageForApplication();
														
							frmOpeningAndCheckingLogFileForXML
									.setVisible(false);
							objMainHomePageForApplication.frmMainHomePage.setVisible(true);
							objMainHomePageForApplication.guiForMainHomePage();
							flag = true;
							objMainHomePageForApplication.btnQueringForXmlDataBasedOnDateinMainHomePage
									.setVisible(true);
							objMainHomePageForApplication.btnfindingSpecialCharInMainHome.setVisible(true);

						}
					});

		} catch (Exception e) {

			e.printStackTrace();
		}
		try {
			btnForSelectingFileForExecuting
					.addActionListener(new ActionListener() {

						@Override
						public void actionPerformed(ActionEvent e) {
							// TODO Auto-generated method stub
							SelectingLogFileToReadXml objSelectingLogFileToReadXml = new SelectingLogFileToReadXml();
							objSelectingLogFileToReadXml.ReadLogFile();
							if (SelectingLogFileToReadXml.fileWithXmlAndGarbageData.exists()) {
								btnForExecutingWriteOnlyXmlToTxtFileFromLogFile
										.setVisible(true);
								txtPathOfFile.setText(SelectingLogFileToReadXml.PathOfFile);

							}
						}
					});
		} catch (Exception e) {
			e.printStackTrace();
		}

		/*
		 * Button listener to cancel selecting a file and moving back to home
		 * screen
		 */
		try {
			btnForCancellingAndMovingBackToMainHomeScreen
					.addActionListener(new ActionListener() {

						@Override
						public void actionPerformed(ActionEvent e) {
							// TODO Auto-generated method stub
							
							MainHomePageForApplication objMainHomePageForApplication = new MainHomePageForApplication();
							objMainHomePageForApplication.frmMainHomePage.setVisible(true);
							frmOpeningAndCheckingLogFileForXML
									.setVisible(false);
						}
					});
		} catch (Exception e) {
			e.printStackTrace();
		}
	}