camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Xpath Prefix NameSpace Error !
Date Tue, 08 Jul 2008 13:37:30 GMT
2008/7/8 James Strachan <james.strachan@gmail.com>:
> What happens if you uncommend the Namespaces line? FWIW you have to
> define namespace prefixes to use XPath effectively with namespaced XML

You need to actually use the Namespaces object to create your xpath expression.

when(ns.xpath("..."))

or

when.xpath("...", ns)

etc

otherwise the namespace prefixes associated with the Namespaces object
will not be passed into the xpath expression (hence your error)

See the namespaces section...
http://activemq.apache.org/camel/xpath.html


-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Mime
View raw message