Re: [Axiom] Using XPAth with namespaces

2007-07-25 Thread Jeff Greif
If the variable requestedSecurityToken does not hold a Document, but rather holds the RequestSecurityTokenResponse element, then the xpath expression should start with "wst:AppliesTo/..." or "./wst:AppliesTo". In general, the xpath expression should be relative to the context node which is the arg

Re: [Axiom] Using XPAth with namespaces

2007-07-25 Thread Philipp Leitner
:32 An: axis-user@ws.apache.org Betreff: Re: [Axiom] Using XPAth with namespaces Hi, you can try to get around this problem by changing the XPath expression: For instance you can rewrite the query //ex:TITLE (with xmlns:ex="http://www.example.com/cds";) as //*[local-name(.) = &

Re: [Axiom] Using XPAth with namespaces

2007-07-25 Thread Jochen Zink
Thanks, but is it not possible to use addNamespace() Methode? regards. Jochen > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 25.07.07 12:03:32 > An: axis-user@ws.apache.org > Betreff: Re: [Axiom] Using XPAth with namespaces > Hi, > > y

Re: [Axiom] Using XPAth with namespaces

2007-07-25 Thread Philipp Leitner
Hi, you can try to get around this problem by changing the XPath expression: For instance you can rewrite the query //ex:TITLE (with xmlns:ex="http://www.example.com/cds";) as //*[local-name(.) = 'TITEL' and namespace-uri(.) = 'http://www.example.com/cds'] Not exactly the most pretty XPa

[Axiom] Using XPAth with namespaces

2007-07-25 Thread Jochen Zink
Hello, I try to use Axiom with XPath and Namespaces. My XML I want to parse is the following: http://schemas.xmlsoap.org/ws/2005/02/trust";> http://schemas.xmlsoap.org/ws/2004/09/policy";> http://schemas.xmlsoap.org/ws/2004/08/addressing/";> https://www.vdg-portal.de/VDGAu