Ok,
You must put always namespaceAware(true), for fixing your xpath
problems is recommended to do something like that:
Element nscontext = XMLUtils.createDSctx(doc, "ds",
Constants.SignatureSpecNS);
//retrieve the signature Element
nks n god bless :)
-Original Message-
From: Heiner Westphal [mailto:[EMAIL PROTECTED]
Sent: 09 March 2005 19:54
To: security-dev@xml.apache.org
Subject: Re: Somone... help... please ...
Ritesh,
leaving the namepaceAware on true and use some ugly XPath like
"//*[local-name()='Header
--Original Message-----
From: Heiner Westphal [mailto:[EMAIL PROTECTED]
Sent: 09 March 2005 19:54
To: security-dev@xml.apache.org
Subject: Re: Somone... help... please ...
Ritesh,
leaving the namepaceAware on true and use some ugly XPath like
"//*[local-name()='Header']/*[local-name()=
est Always,
Ritesh Aswaney
* Mobile: +44 7909540132
-Original Message-
From: Heiner Westphal [mailto:[EMAIL PROTECTED]
Sent: 09 March 2005 19:54
To: security-dev@xml.apache.org
Subject: Re: Somone... help
Ritesh,
leaving the namepaceAware on true and use some ugly XPath like
"//*[local-name()='Header']/*[local-name()='SenderInfo']/*[local-name()='SenderID']"
will match the node you would have called
"//Header/SenderInfo/SenderID" in absence of namespaces.
Sadly it matches nodes even in the wrong nam