为何我在用SAX遍历时,把根节点的子节点的属性也都遍历了出来?求大神!
@Override
//用来遍历xml文件的开始标签
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
super.startElement(uri, localName, qName, attributes);
for(int i = 0; i < attributes.getLength();i++){
System.out.println(attributes.getQName(i));
}以下是我所用的xml文件例子,以及运行结果。求大神支招!!

