|
No. It is not. You need to do something like this: <Root xmlns:dsig="http://....."> <dsig:Signature> . .. </dsig:Signature> </Root> And after that you can use "dsig:Siganture" in XPath _expression_. Please read the XPath spec and play with XPath expressions using xmllint tool included in LibXML2 package. Or hire someone who can help you with this. Aleksey Jan-Olof Andersson wrote: I think I start to understand what you mean ;-)) The dsig shall be declared and the Signature reference like <Signature xmlns="&dsig;" >Is that correct? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Aleksey Sanin Sent: den 24 september 2003 15:01 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [xmlsec] selecting strart node from command line Your XPath _expression_ have to select a single start node. The error tells you that the xpath expressiong you have used selected multiple or no nodes at all. In your case I would *guess* that you got no nodes because you did not specify namespaces (and /dsig:Signature and /Signature xpath _expression_ select different nodes). Also please note that for signatures, start node is expected to be <dsig:Signature/> node. BTW, there is a good XPath tutorial with a lot of examples: http://www.zvon.org You might want to look at it if you need to quickly find an Xpath _expression_ for your needs. Aleksey Jan-Olof Andersson wrote: |
- [xmlsec] selecting strart node from command line Aleksey Sanin
- RE: [xmlsec] selecting strart node from command li... Jan-Olof Andersson
- Re: [xmlsec] selecting strart node from command li... Aleksey Sanin
- Re: [xmlsec] selecting strart node from command li... Aleksey Sanin
