public boolean create(String path) {
        boolean flag = false;
        Document document = null;        //ĵ
        Element testcases = null;            //ڵ
        Element testcase = null;            
        Element version = null;           
        Element summary = null;           
        Element preconditions = null;           
        Element steps = null;            
        Element step = null;           
        Element step_number = null;            
        Element actions = null;           
        Element expectedresults = null;           
        Element keywords = null;           
        Element keyword = null;            
        OutputFormat format = null;
        XMLWriter writer = null;
        
        try {
            document = DocumentHelper.createDocument();
            String path1 = path.substring(0, path.length()-4);
            testcases = document.addElement("testcases");
            testcases.addComment("ע");
            
            
            ReadXls rx = new ReadXls();
            List li = rx.readExcel(path);            
            
            for(int i=0; i<li.size();i++){
            	
            String a = li.get(i).toString();
            testcase = testcases.addElement("testcase");
            
            version = testcase.addElement("version");
            summary = testcase.addElement("summary");
            preconditions = testcase.addElement("preconditions");
            steps = testcase.addElement("steps");
            keywords = testcase.addElement("keywords");
            keyword = keywords.addElement("keyword");
            
            
            
            
            
           //
//            String a = "name1,version1,summary1,preconditions1,steps1,expectedresults1,keyword1,";
            String[] b= a.split(",");
           
            for(int j=0; j<b.length; j++){
            
            switch(j){
            case 0:	
            	testcase.addAttribute("name", b[j]);
         	   break;
            case 1:
        	    version.setText(b[j]);
        	    break;
            case 2:
            	summary.setText(b[j]);
            	break;
            case 3:
            	preconditions.setText(b[j]);
            break;
            case 4:
            	String s = b[j];
            	String[] t = s.split("\n");
            		for(int k=0; k<t.length; k++){
            			step = steps.addElement("step");
            			step_number = step.addElement("step_number");
            			step_number.setText(""+(k+1));
            			actions = step.addElement("actions");
            			actions.setText(t[k]);
            			
            			String ss =b[5];
                    	String[] tt = ss.split("\n");
                    	expectedresults = step.addElement("expectedresults");
            			expectedresults.setText(tt[k]);
            		}
            break;
            
            case 6:
            	keyword.addAttribute("name", b[j]);
            break;
            	
            
            }}}
            //ַ
            format = OutputFormat.createPrettyPrint();
            format.setEncoding("GBK");
            //format.setEncoding("UTF-8");    //utf-8Ҳ
            
            System.out.println(document.asXML());
            
            writer = new XMLWriter(new FileWriter(new File(path1+".xml")), format);
            writer.write(document);
            writer.close();
            
            flag = true;
            
            return flag;
        }
        catch(Exception e) {
            e.printStackTrace();
        }
        return flag;
    }