1。SAX方式 SAXReader saxReader = new SAXReader(); Document document = saxReader.reader("...."); 2.DOM方式 DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); org.w3c.dom.Document w3cDocument = db.parse(".."); org.dom4j.Document dom4jDocument = null; DomReader domReader = new DomReader(); dom4jDocument = domReader.reader(w3cDocument); // 两种document的相互转换