<?xml version="1.0" encoding="GB2312" ?> 
<ItemDetails> 
<ItemDetail> <City > <![CDATA[深圳]]> </City> 
<Reports>  <Report Type="introduction"> 
     <![CDATA[introductionintroductionintroduction]]> 
</Report> <Report Type="traffic">   <Item> 
     <Area> <![CDATA[市中心]]> </StartArea> 
     <Name> <![CDATA[东门]]> </StartName> 
 </Item> 
<Item> 
    <Area> <![CDATA[机场]]> </StartArea> 
    <Name> <![CDATA[宝安机场]]> </StartName> 
</Item> </Report> </Reports> 
</ItemDetail>
</ItemDetails> City取值直接就是 Node cityName = doc.selectSingleNode( "//City" );
下面这个Reports怎么解析啊 两个report子元素,他们属性不一样,其中一个还有Item子元素,我怎么用xpath按report属性去区分report?还有一个问题,我无论加了多少个 report子元素,List<Node> list = doc.selectNodes("//Reports/Report"); 长度始终是2,这个不是算Report有几个的吗?