Customer Portal

Excel to XML Transforming Issue

Comments 2

  • Avatar
    Vladimir Barton
    0
    Comment actions Permalink
    Hi Burakburak,
    first of all, I would suggest reviewing our documentation (namely the first example shown in Figure 56.27. Mapping Editor) details on how to design the mapping in different situations. To demonstrate the practice, I have attached a simple example graph that resembles your use case. Worth noting is:

    • Since there are header items and line items present in the desired output XML, you would need to push these records via different input ports into XMLWriter.

    • To obtain the header records, I have used a simple Dedup component and deduplicated the records on the ID key.

    • In the XMLWriter mapping under Root > Element0 > Variants >Binding, notice the Key and Parent key properties. This is how the header and line information gets joined.

    • A good practice is to sort both input ports data on the "join" key.


    Regards,
  • Avatar
    tanker62
    0
    Comment actions Permalink
    I don't know whether the person who asked this question could solve the problem, but I could, so, for the record, the solution described works. Thanks!

Please sign in to leave a comment.