2008/7/8 James Strachan <[EMAIL PROTECTED]>:
> 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

Reply via email to