This content has been marked as final.
Show 3 replies
-
1. Re: Split xml and send part to jms queue
davsclaus Mar 7, 2011 1:13 AM (in response to labo32_delaboe)Check out the Splitter EIP
http://fusesource.com/docs/router/2.6/eip/MsgRout-Splitter.html
And XPath
http://camel.apache.org/xpath.html
The Camel in Action book, covers using Splitter in much more detail. And it has a lot of small samples in both Java DSL and XML.
-
2. Re: Split xml and send part to jms queue
labo32_delaboe Mar 7, 2011 4:05 PM (in response to davsclaus)I cannot get it up and running with the following setup
The webservice is called, LogOutput shows the result as mentioned in my first post but the split does not work.
I try several different xpath expressions but either the SplitLogOutput is not executed at all or the result is an exception (invalid xpath).
-
3. Re: Split xml and send part to jms queue
davsclaus Mar 8, 2011 1:40 AM (in response to labo32_delaboe)XPath can be a **** to get working. Make sure the XML is valid before hitting the xpath expression.
Sometimes its easier to use plain String types for XPath. So try adding tag.