この XML を考えると
<well bulkShift="0.000000" diameter="5.000000" hidden="false" name="67-1-TpX-10" filename="67-1-TpX-10.well">
<metadata/>
<unit>ftUS</unit>
<colour blue="1.000000" green="1.000000" hue="" red="1.000000"/>
<tvd clip="false"/>
<associatedcheckshot>25-1-X-14</associatedcheckshot>
<associatedwelllog>HDRA_67-1-TpX-10</associatedwelllog>
<associatedwelllog>NPHI_67-1-TpX-10</associatedwelllog>
</well>
このXPathで要素を選択できます
//well[@bulkShift=0 and @diameter=5 and @hidden='false' and @name='67-1-TpX-10' and @filename='67-1-TpX-10.well']
ただし、子要素 (メタデータ、ユニット、色など) が要素内に任意の順序で表示される場合、これらの特定の子ノードを持つ要素を見つける必要があるという点で、より具体的にする必要があります。
理想的には、1 つの XPath クエリだけでこのノードを選択できるようにしたいと考えています。
誰でも助けることができますか?