This content has been marked as final.
Show 2 replies
-
1. Re: XPath change to values in spite to XML message
davsclaus Oct 3, 2011 2:20 AM (in response to eruiz_eruiz)Do not use the resultType="String" as it causes the xpath framework to return the content and not the element.
-
2. Re: XPath change to values in spite to XML message
eruiz_eruiz Oct 3, 2011 3:12 AM (in response to davsclaus)It worked. Thanks!
The doc http://fusesource.com/docs/router/2.7/expression_languages/Xpath-Expressions.html should be updated to explain that. The doc says:
If you just want to access the text inside by the element, append /text() to the location
path, otherwise the node includes the element's start and end tags (and these tags
would be included when you convert the node to a string).
All the best.