public  void creat(List[] input,String strFileName) throws RowsExceededException, WriteException, DocumentException{
		try {
			
			String newFile = strFileName.substring(0, strFileName.length()-4);
			System.out.println("newfile"+newFile);
            WritableWorkbook book  =  Workbook.createWorkbook(new File(newFile+".xls" ));
            WritableSheet sheet  =  book.createSheet("һҳ ",0 );
             //ɱ
             //
            WritableFont font1 = new  WritableFont(WritableFont.TIMES, 12 ,WritableFont.BOLD); 
            WritableCellFormat format1 = new  WritableCellFormat(font1); 
             //ñ
            String[] titles = {"CaseName","TestImportance","ExecutionType","Keywords","Summary","Preconditions","step_number","StepActions","ExpectedResults","Execution"};
            	for(int i=0;i<titles.length;i++){
            		Label label_i = new Label(i,0,titles[i],format1);    
            		sheet.addCell(label_i);
            	}
            	//ݣѭ
            	for(int i=1;i<input.length;i++){
            		int j=0;
            		int k = 1;
        			System.out.println("i="+i);
        			
        			for(Iterator it = input[i].iterator();it.hasNext();){
        				
        				
        				Element ele=(Element)it.next();
        				
        				System.out.println(ele.getText());
        				
        				j+=1;
        				 
        				System.out.println("j="+j);
        				
        				//ַ
        				String content1 = filterHtml(ele.getText());
        				String content2 = content1.replace("&ldquo;", "");
        				String content3 = content2.replace("&rdquo;", "");
        				String content4 = content3.replace("&nbsp;", " ");
        				
        		//ԲĴ
        		if(i==6||i==7||i==8){		
        			Label label = new Label(i,j,content4);
        			sheet.addCell(label);
        			}
        		//ָͨ
        		else{
        			int ti[] = new ReadXml().getTime(strFileName);
        			Label label = new Label(i,k,content4);
        			k = k+ti[j];
        			sheet.addCell(label);
        			}
        		
        			
        			}
        		}
            	
            	
            	//ȡ
            	//ȡname
            	List li = new ReadXml().getName(strFileName);
            	
            	int ti[] = new ReadXml().getTime(strFileName);
            	int k = 1;
            	
    				for(int s =0;s<li.size();s++){
    					System.out.println("00000"+li.get(s));
    					Label label = new Label(0,k,(String)li.get(s));			  				
    					sheet.addCell(label);
    					System.out.println("-----------"+li.get(s)); 
    					System.out.println("********"+ti[s]);
    					k = k+ti[s+1];
    					
    			}
    			
    			
    			//ȡؼ
    			List lis = new ReadXml().getKey(strFileName);
            	
    			for(int s =0;s<lis.size();s++){
    				System.out.println("00000"+lis.get(s));
    				Label label = new Label(3,s+1,(String) lis.get(s));
    				sheet.addCell(label);
    			}
             //  дݲرļ
            book.write();
            book.close();
			
			
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	
	}