サーチ…
特定の属性を持つすべての要素を検索する
次のXMLを想像してみてください。
<root>
    <element foobar="hello_world" />
    <element example="this is one!" />
</root>
 /root/element[@foobar]
  <element foobar="hello_world" />要素を返します。 
特定の属性値を持つすべての要素を検索する
次のXMLを想像してみてください。
<root>
    <element foobar="hello_world" />
    <element example="this is one!" />
</root>
 次のXPath式は次のとおりです。
/root/element[@foobar = 'hello_world']
  <element foobar="hello_world" />要素を返します。 
二重引用符も使用できます:
/root/element[@foobar="hello_world"]
    
    
    
    
    Modified text is an extract of the original Stack Overflow Documentation
        ライセンスを受けた CC BY-SA 3.0
        所属していない Stack Overflow