0 Replies Latest reply on May 31, 2012 1:44 PM by Brian Blasko

    Smooks mapping encoding & when bound to javabean

    Brian Blasko Newbie

      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 &quot; &lt; &gt; &apos; &amp; </District>
                </Context>
      </Request>