SAXReader saxReader = new SAXReader();
Document document = saxReader.read(new File("aa.xml"));
        
List list = document.selectNodes("/root/book/@show");//字符串写成"//root/book/@show"也不对
Iterator iter = list.iterator();
           while(iter.hasNext()){
              Attribute attribute = (Attribute)iter.next();
              System.out.println(attribute.getValue());
              }   
           }
我的aa.xml文件如下:<?xml version="1.0" encoding="UTF-8"?><root>
  <!--This is a test for dom4j, holen, 2004.9.11-->
  <book show="yes">first</book>
  <book show="yes"/>
  <book show="no"/>
  <title>Dom4j Tutorials</title>
  <owner>O'Reilly</owner>
</root>但总是出现错误如下错误:Exception in thread "main" java.lang.NoClassDefFoundError: org/jaxen/JaxenException
at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230)
at org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207)
at org.dom4j.tree.AbstractNode.selectNodes(AbstractNode.java:164)
at other.dom4j.editXML(dom4j.java:85)
at other.dom4j.main(dom4j.java:109)不知道什么原因,请各位指导一,二,小鸟不胜感激