我这里好的,没有抛出异常
public class Dom4JDemo {
static final String path = "D:\\work\\Lab\\src\\com\\zet\\xml/dom/";
public static void main(String[] args) {

          try{
File XmlFile = new File(path+"test.xml");
SAXReader saxReader = new SAXReader();
Document document = saxReader.read(XmlFile);
Node n = document.selectSingleNode("child");
List list = document.selectNodes("child");
          }catch(Exception e){
           e.printStackTrace() ;
          }
}}<?xml version="1.0"?>
<root>
<child>1</child>
<child>2</child>
</root>