//获得document
//获得流
SAXReader saxReader = new SAXReader();
//获得document
Document document = saxReader.read(new File("books.xml"));
return document;
保存
//目标文件位置流
OutputStream out = new FileOutputStream(new File("books.xml"));
//获得流
XMLWriter = new XMLWriter(out);
//保存
Writer.write(document);
writer.close();
out.close();