???????????????xml??
???????????? ???????[ 2015/12/10 10:38:39 ] ?????????????
??????xmlд??????????
public class WriteToXml {
static List<Dep> listdep=new Dep("0000"); //0000??????
Element root=DocumentHelper.createElement("Dep");
Document doc=DocumentHelper.createDocument();
public void Write(List<Dep> listdep??Element element){
for(Dep dep:listdep){
//??????????????????
Element menuElement = element.addElement(dep.getDeptname());
//???????????deptcode??value?????id
Attribute att=DocumentHelper.createAttribute(menuElement?? "deptcode"??dep.getDeptcode());
menuElement.add(att);
if(dep.getChildren()!=null&&dep.getChildren().size()>0){
Write(dep.getChildren()??menuElement);
}
}
}
public void WriteAll(String path){
//??????д??root???
Write(listdep??root);
try{
XMLWriter xmlwriter=new XMLWriter(new FileWriter(new File(path)));
doc.add(root);
xmlwriter.write(doc);
xmlwriter.close();
}catch(IOException e){
e.printStackTrace();
}
}
public static void main(String[] args) {
WriteToXml t=new WriteToXml();
t.WriteAll("E://test.xml");
}
}
?????ò??????????????xml?????д????...????????xml?γ?html??????????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
?????????????????????????Щ????????????????????TC???????????????Щ???????????????????????????????????????????????(java .net ?????)???mysql???????????????????ж????д???Python???????????????(DB2)??????BufferPool????????????????????????????????6??????????????????滮???????????????-????????SQL Server???????????????????λ?????PHP??SQL????????????????????Pythonд???NoSQL????????? SQL ?е????????????? SQL ?е?????????Java???????:?????MySQL???????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????