We are using a Smooks transformation to map data from XML to a javabean. In some of the XML date, we have &(encoded as &).
When the data is bound to the javabean attribute it ends up getting encoded as &. I previously logged this with the Smooks team but was wondering if anyone has a work around other than to use the DOM parsing.
Example mapping and file
<jb:bean beanId="Context" class="java.util.HashMap" createOnElement="Context"> <jb:value data="/Request/Context/*" property="@name"> </jb:value> </jb:bean> <Request> <Context> <District>0001 " < > ' & </District> </Context> </Request>