1、创建一个SAXBuilder的对象
SAXBuilder saxBuilder = new SAXBuilder();
2、创建一个输入流,将xml文件加载到输入流中
InputStream in = new FileInputStream("book.xml");
3、通过saxBuilder的bulid方法将输入流加载到saxBuilder中
Document document = saxBuilder.build(in);