The Camel @XPath also supports specifying namespaces.
On Wed, Jul 6, 2011 at 3:51 PM, Andrè <[email protected]> wrote: > hey, > another problem i´m facing is ... > > <to uri="bean:isAuthZBlocked?method=checkRequest" /> > gets a xml as string > > the method head looks like this: > > public void checkRequest( > > @XPath("/Request/Subject/Attribute[@AttributeId='urn:oasis:names:tc:xacml:1.0:subject:subject-id']/AttributeValue/text()") > String ref) > > but the xml is like that: > <Request xmlns="urn:oasis:names:tc:xacml:2.0:context:schema:os" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation=" urn:oasis:names:tc:xacml:2.0:context:schema:os > http://docs.oasis-open.org/xacml/access_control-xacml-2.0-context-schema-os.xsd"> > <Subject> > <Attribute > AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id" > > DataType="urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name"> > <AttributeValue>[email protected]</AttributeValue> > </Attribute> > ..... > which means, that i have to declare the namespace which is defined in > request > > but aflter reading this http://camel.apache.org/xpath.html > i dont know how to do it in Spring DSL? > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/XPath-namespaces-in-Spring-DSL-tp4556826p4556826.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
