public void read(){		
		try {						
			if (url!=null){		
		       	//reads from a remote URL server
		       	is = new InputSource(url.openStream());
		       	is.setEncoding("ISO-8859-15");
		        saxParser.parse(is, this); 
		    }else{  	
		      	String xmlFile = System.getProperty("user.dir") + "\\src\\" + xmlSource; 
		      	
		       	//reads from a local storage/file 
			    InputStream inputStream= new FileInputStream(new File(xmlFile));
	
	    	    Reader reader = new InputStreamReader(inputStream,"UTF-8");
			   	is = new InputSource(reader);
			   	is.setEncoding("ISO-8859-15"); 
			   	//is.setEncoding("UTF-8");  	      
		        	
		        saxParser.parse(is, this);
		     }
		 } catch (Exception e) {
		       e.printStackTrace();
         }

	}