public static List<SchemaError> checkBadChars(URL file){
		List<SchemaError> errors=new ArrayList<SchemaError>();
		if(file!=null){
			
			try {
				BufferedReader br=new BufferedReader(new InputStreamReader(file.openStream()));
				String line=br.readLine();
				int j=0;
				while(line!=null){
					j++;
					for(int i=0;i<line.length();i++){
						if(line.codePointAt(i)>127){
							SchemaError shemaError = (SchemaError)Factory.getFactory().getDataObject(Factory.ObjectTypes.SchemaError);
							shemaError.setEntityName(file.getFile());
							Error error=(Error)Factory.getFactory().getDataObject(Factory.ObjectTypes.Error);
							error.setErrorType(ErrorType.ERROR);
							error.setErrorCode("-9999");
							error.setMessage("Bad Unicode Character encounted at line number: <br/>"+ j + " Charcter : "+ line.charAt(i));
							error.setSuggestion("Remove the bad character as only UTF-8 characters can be parsed, check with XmlSpy.<br/> Line with Error: "+ line);
							shemaError.setError(error);
							errors.add(shemaError);
						}
					}
					line=br.readLine();
					
				}
			} catch (IOException e) {
				throw new ParserExeption("Error Parsing documents", e);
			}
		}
		return errors;
	}