Topic: XPath confusion |
|
---|---|
Author | Thread |
Maniac (V) Inmate From: San Antonio |
posted 04-26-2010 18:17
All righty, I've worked with XPaths before, but it's been mostly trivial stuff, simple queries to return a single node based on various conditions (and all in C# before). code: <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Header> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <ds:SignedInfo> <ds:subnode>blah</ds:subnode> </ds:SignedInfo> </ds:Signature> </wsse:Security> </S:Header> <S:Body wsu:Id="Body-1-2cb7c7df3ee732dfa7f9a020ad2a5cd6" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> </S:Body> </S:Envelope>
code: returned: 11 nodes Node: SignedInfo Node: subnode Node: text Node: http://www.w3.org/XML/1998/namespace Node: http://schemas.xmlsoap.org/soap/envelope/ Node: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd Node: http://www.w3.org/2000/09/xmldsig# Node: http://www.w3.org/XML/1998/namespace Node: http://schemas.xmlsoap.org/soap/envelope/ Node: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd Node: http://www.w3.org/2000/09/xmldsig#
|