public static boolean getStationsData(String pathName)
	{
		DocumentBuilderFactory docBuilderFactory;
		DocumentBuilder docBuilder;
		Document document = null;
		try {
			 
			docBuilderFactory  = DocumentBuilderFactory.newInstance();
		    docBuilder = docBuilderFactory.newDocumentBuilder();
		    
		    document = docBuilder.parse(new File(pathName));
		    document.getDocumentElement().normalize();
		    
		} catch (ParserConfigurationException e) {
			System.err.println("XML Format error.");
			return false;
		}catch (IOException e) {
			System.err.println("Write/Read error.");
			return false;
		} catch (SAXException e) {
			System.err.println("SAXException.");
			return false;
		}

	    NodeList names = document.getElementsByTagName("name");
	    NodeList coordinates = document.getElementsByTagName("coordinates");
	    NodeList state = document.getElementsByTagName("value");
	    
	    ArrayList<String> sNames = new ArrayList<String>();
	    ArrayList<String[]> sCoordinates = new ArrayList<String[]>();
	    ArrayList<String> sStates = new ArrayList<String>();
	    String tempStr;
	    int j = 0;
	    
	    for (int i = 0; i < names.getLength(); i++)
	    {
	    	if(names.item(i).getParentNode().getNodeName() == "Placemark" || coordinates.item(i).getParentNode().getNodeName() == "Placemark")
	    	{
	    		sNames.add(names.item(i).getTextContent());
	    		tempStr = coordinates.item(j).getTextContent().replaceAll("0.0", "");
	    		sCoordinates.add(tempStr.split(","));
	    		
	    		tempStr = state.item(j).getTextContent();
	    		
	    		if(tempStr.equals("1"))
	    		{
	    			sStates.add("true");
	    		}
	    		else
	    		{
	    			sStates.add("false");
	    		}
	    		
	    		j++;
	    	}
		}

	    return IOFiles.writeStationsFile("cleanData/stationsData.txt", sNames, sCoordinates, sStates);
	}