一個節點出現的次數我有以下格式的XML文件: -查找一個xml文件
<EticketCanStatusRes>
<ETicket>
<eticketno>asdf4511</eticketno>
<flightuid>57490</flightuid>
<passuid>91832</passuid>
<PnrNumber>AADS12</PnrNumber>
<Origin>COK</Origin>
<Destination>DEL</Destination>
</ETicket>
<ETicket>
<eticketno>asdf4511</eticketno>
<flightuid>57490</flightuid>
<passuid>91832</passuid>
<PnrNumber>AADS12</PnrNumber>
<Origin>COK</Origin>
<Destination>DEL</Destination>
</ETicket>
</EticketCanStatusRes>';
我需要找出多少<ETicket>
元素有。在我的例子也有2
你如何試圖做到這一點? – Fluffeh 2012-08-10 11:09:57