doc = saxReader.read( new File("C:/a.xml"));
Element root=doc.getRootElement();
Iterator iterator=root.elementIterator();
while(iterator.hasNext()){
Element element=(Element)iterator.next();
System.out.println(element.getName()+"----"+element.getText());
}
如: