0 Replies Latest reply on Jan 22, 2013 5:12 AM by pero_n

    Smooks transformation problem

    pero_n

      Hi!

       

      I have tried to use Smooks to perform an xml to xml transformation, and this is my problem:

       

      I have the following xml:

       

       

      <Properties>
      ...
          <b:PropertyIndices>
              <c:KeyValueOfstringint>
                  <c:Key>aaa</c:Key>
              </c:KeyValueOfstringint>
              <c:KeyValueOfstringint>
                  <c:Key>bbb</c:Key>
              </c:KeyValueOfstringint>
              <c:KeyValueOfstringint>
                   <c:Key>ccc</c:Key>
              </c:KeyValueOfstringint>
          </b:PropertyIndices>
          ...
          ...
           <a:PropertyValues>
              <a:PropertyValue">
                  <a:SingleValue>111</a:SingleValue>
              </a:PropertyValue>
              <a:PropertyValue">
                   <a:SingleValue>222</a:SingleValue>
              </a:PropertyValue>
              <a:PropertyValue">
                  <a:SingleValue>333</a:SingleValue>
              </a:PropertyValue>
          <a:PropertyValues>  
      ...
      </Properties>
      

       

      Is it possible with Smooks to transform this xml to the another xml with the following format using freemarker:

       

       

      <aaa>111</aaa>
      
      
      
      <bbb>222</bbb>
      
      
      
      <ccc>333</ccc>
      
      

       

      Thank you!