public List<String> seperateDocs() throws IOException {
		String doc = new String(header); 
		
		BufferedReader br = new BufferedReader(new FileReader(file));
		
		boolean isDocStart = false;
		
		while(br.ready()){
			String line = br.readLine();
			if(line.equals("<"+tag+">"))
				isDocStart = true;
			else if(line.equals("</"+tag+">")){
				isDocStart = false;
				doc += line;
				docList.add(doc);
				doc = new String(header);
			}
			
			if(isDocStart)
				doc += line;
		}
		
		br.close();
		
		return docList;
		//boolean isDocStart = false;
		
		
		
//		while(br.ready()) {
//			String line = br.readLine();
//			System.out.println(line);
//			firstLine += line;
//		}
//		
//		firstLine += lastLine;
//		br.close();
//		return firstLine;
	
	}