Customer Portal

XLS to XML transformation

Comments 2

  • Avatar
    avackova
    0
    Comment actions Permalink
    Hello,
    if you don't need to join data from different ports to your output file you can use StructureWriter. The graph is very easy: XLSDataReader -> StructureWriter and you don't need any complicated mapping:
    <Node fileURL="${DATAOUT_DIR}/xml.out" id="STRUCTURE_WRITER0" mask="&lt;SomeXML value=&quot;$Col1&quot;&gt;&#10;    &lt;Element constant=&quot;some string here&quot; /&gt;&#10;    &lt;Property&gt;&#10;       &lt;Value name=&quot;Name&quot;&gt;$Col2&lt;/Value&gt;&#10;       &lt;Value name=&quot;Name2&quot;&gt;$Col4&lt;/Value&gt;&#10;    &lt;/Property&gt;&#10;    &lt;AnotherElement name=&quot;$Col3&quot; /&gt;&#10;&lt;/SomeXML&gt;&#10;" type="STRUCTURE_WRITER"/>
  • Avatar
    sean
    0
    Comment actions Permalink
    Thank you! This worked great

Please sign in to leave a comment.