Hi,

i want to select the <ds:Signature> element in the following xml 
document (shortend):

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" ...
    <env:Header>
       <wsse:Security env:mustUnderstand="1" ...
          <wsse:BinarySecurityToken ...
          <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig ...
          <ds:SignedInfo> ...

I have tried various approachs with REXML and XPATH like

e=XPath.match(doc, "/env:Envelope/env:Header/wsse:Security/ds:Signature")

but it returns only an empty array.


e=XPath.match(doc, "/env:Envelope/env:Header/wsse:Security")

returns the <wsse:Security> element as expected.

Any hints?

Regards,

Roland