camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: Xpath Prefix NameSpace Error !
Date Tue, 08 Jul 2008 13:37:30 GMT
2008/7/8 James Strachan <>:
> 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.xpath("...", ns)


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

See the namespaces section...


Open Source Integration

View raw message