public static ArrayList<Employee> readFromXML(String file)
	{
		try {
			File xmlFile = new File(file);
			DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
			DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
			Document doc = dBuilder.parse(xmlFile);
			doc.getDocumentElement().normalize();
			
			ArrayList<Employee> employeeList = new ArrayList<Employee>();
			
			NodeList nList = doc.getElementsByTagName("Employee");
			for (int temp = 0; temp < nList.getLength(); temp++)
			{
				Node nNode = nList.item(temp);
				
				String firstName = "";
				String lastName = "";
				int hoursWorked = 0;
				double payRate = 0;
				NodeList childs = nNode.getChildNodes();
				for(int tempLoop = 0; tempLoop< childs.getLength(); tempLoop++)
				{

					if(childs.item(tempLoop).getNodeName().equalsIgnoreCase("firstname"))
					{
						firstName = childs.item(tempLoop).getTextContent();
					}
					else if(childs.item(tempLoop).getNodeName().equalsIgnoreCase("lastname"))
					{
						lastName = childs.item(tempLoop).getTextContent();
					}
					else if(childs.item(tempLoop).getNodeName().equalsIgnoreCase("hoursworked"))
					{
						hoursWorked = Integer.parseInt(childs.item(tempLoop).getTextContent());
					}
					else if(childs.item(tempLoop).getNodeName().equalsIgnoreCase("payrate"))
					{
						payRate = Double.parseDouble(childs.item(tempLoop).getTextContent());
					}					
					
				}
				
				Employee newEmployee = new Employee(firstName,lastName,hoursWorked,payRate);
				employeeList.add(newEmployee);
				
			}
			
			return employeeList;
					
		} 
		catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (SAXException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (ParserConfigurationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		
		return null;
	}