<segmentFlightRef>
<referencingDetail>
<refQualifier>S</refQualifier>
<refNumber>4</refNumber>
</referencingDetail>
<referencingDetail>
<refQualifier>S</refQualifier>
<refNumber>1</refNumber>
</referencingDetail>
</segmentFlightRef>
<segmentFlightRef>
<referencingDetail>
<refQualifier>S</refQualifier>
<refNumber>5</refNumber>
</referencingDetail>
<referencingDetail>
<refQualifier>S</refQualifier>
<refNumber>1</refNumber>
</referencingDetail>
</segmentFlightRef>
<segmentFlightRef>
<referencingDetail>
<refQualifier>S</refQualifier>
<refNumber>1</refNumber>
</referencingDetail>
<referencingDetail>
<refQualifier>S</refQualifier>
<refNumber>5</refNumber>
</referencingDetail>
</segmentFlightRef>
在上面的xml我想要「segmentFlightRef」標記的子節點「refNumber」具有值「5」和「1」。和順序必須考慮,所以我需要它的子節點值5和1 sequencially 請幫我 感謝事先只在一個節點使用xpath選擇特定的xnode
thanx爲您的答案,但我編輯了我的問題。我只需要單個節點。請再次參考 –
@BrijeshGandhi更新了我的答案。 – dirkk
非常感謝您 –