Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-1695

XML files with the same root element but different structure cause trouble to Data Transformation Editor

    Details

    • Steps to Reproduce:
      Hide
      1. create camel-archetype-spring project
      2. modify src/data/message*.xml files as is described in Description (from = message1.xml, to = message2.xml)
      3. create Data Transformation - xml2xml (Source = message1.xml, Target = message2.xml)
      Show
      create camel-archetype-spring project modify src/data/message*.xml files as is described in Description (from = message1.xml, to = message2.xml) create Data Transformation - xml2xml (Source = message1.xml, Target = message2.xml)

      Description

      If I want to transform the following XML files defined by instances of documents (files have the same root element, but different structure), I'm unable to do it. Data Transformation Editor shows in Source data structure defined for Target (see attached video).

      from

      <?xml version="1.0" encoding="UTF-8"?>
      <person user="james">
        <firstName>James</firstName>
        <lastName>Strachan</lastName>
        <city>London</city>
        <target>target</target>
      </person>
      

      to

      <?xml version="1.0" encoding="UTF-8"?>
      <person user="hiram">
        <firstName>Hiram</firstName>
        <lastName>Chirino</lastName>
        <city>Tampa</city>
        <test>TEST</test>
      </person>
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jpav John Verhaeg
                Reporter:
                tsedmik Tomáš Sedmík
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: