1.读取XML文件,获得document对象. SAXReader reader = new SAXReader(); Document document = reader.read(new File("input.xml")); 2.解析XML形式的文本,得到document对象. String text = ""; Document document = DocumentHelper.parseText(text); 3.主动创建docu