我有以下格式的 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 个。