用于生成xml实体bean
} } for (int i = 0; i < j; i++) { } e.printStackTrace(); e.printStackTrace(); Photo p = photo[i]; System.out.println("title:" + p.getTitle() + " path:" + p.getPath() + " desc:" + p.getDesc()); } catch (XmlException e) { } catch (IOException e) { try { } Photo p = dataDocument.getData().addNewPhoto(); p.setTitle("领导视察"); p.setPath(""); p.setDesc("百度建设"); XmlOptions xmlOptions = new XmlOptions(); xmlOptions.setSavePrettyPrint(); dataDocument.save(inputXMLFile, xmlOptions); e.printStackTrace(); } catch (IOException e) {