public Element createXmlByEntitys(Set<String> entitys, Set<String> voentitys)
			throws ClassNotFoundException, DBException {
		DocumentFactory factory = new DocumentFactory();
		Element rootElement = factory.createElement("entitys");

		// po类信息生成
		if (entitys == null)
			//throw new ErrorException("po包路径配置不正确,路径下没有实体类;");
		{
			
		}
		else {
			for (String entityName : entitys) {
				// System.out.println(entityName);
				Element entity = this.createElementByPo(factory, entityName);

				if (entity == null) {
					continue;
				}
				//System.out.println(entity.asXML());
				rootElement.add(entity);
			}
		}
		// System.out.println(voentitys);
		// vo类信息生成
		if (voentitys == null) // throw new
								// ErrorException("vo包路径配置不正确,路径下没有对应的vo实体类");
		{

		} else {
			for (String entityName : voentitys) {
				System.out.println(entityName);
				Element entity = this.createElementByVo(factory, entityName);
				// System.out.println(entity);
				if (entity == null) {
					continue;
				}
				//System.out.println(entity.asXML());
				rootElement.add(entity);
			}
		}

		//System.out.println(rootElement.asXML());
		return rootElement;
	}