代码片段
SAXReader saxReader = new SAXReader(); Document document = saxReader.read(xmlFile); Element root = document.getRootElement(); for(Iterator iterator=root.elementIterator();iterator.hasNext();){ Element item=(Element)iterator.next(); String name=item.getName(); String title=item.element("title").getText(); }