1、创建xml文件
DocumentFactory factory = newDocumentFactory();
Document doc = factory.createDocument();
doc.addElement(OrganizateConstant.EREQUEST);
doc.setXMLEncoding("gb2312");
doc.setName("MainData.xml");
Element root = doc.getRootElement();
root.addAttribute("type", "0");
Element head = root.addElement(OrganizateConstant.HEAD);
Element security = head.addElement(OrganizateConstant.SECURITY);
security.addAttribute("type", "0");
Element element = security.addElement(OrganizateConstant.CA);
element.setText("");
element = security.addElement(OrganizateConstant.USER);