Flat Delim Preemitter (com.ibi.preemit.XDFlatDelimPreEmitter)

How to:

Syntax:

com.ibi.preemit.XDFlatDelimPreEmitter

Description:

This preemitter transforms an XML document into a flat file. It does so by extracting the XML data values and separating them by pipe delimiters and discards the XML tags.

For example, you could use the Flat Delim preemitter if the user needs to perform processing and transformation of the XML data and send the data back to a legacy system then this preemitter can transform the XML into a flat file using pile symbol as the delimiter.

Parameters:

Parameter

Description

Name

Name of the new Preemitter object definition.

Description

Description for the new Preemitter object definition.


Top of page

x
Procedure: How to Use a Flat Delim Preemitter
  1. Select Flat Delim Pre emitter from the list.
  2. Click Next.

    The Name and Description pane opens.

  3. Provide a name and optionally, a description for the preemitter.
  4. Click Finish.
  5. Name the preemitter FlatDelimPreemitter.

    After you add the FlatDelimPreemitter to iWay Service Manager, create an outlet, PreemitterOutlet and add the FlatDelimPreemitter to this outlet.

    Create a file emitter which writes to a flat file a*.txt. Also add the file emitter to this outlet.

    Construct the channel PreemitChannel using a file listener case1 as inlet, a simple move route and the outlet created in the previous step.

    The input to this channel is the following:

    <?xml version="1.0"?>
    <hello-world>
      <greeter>A SOA Programmer</greeter>
      <greeting>Hello World!</greeting>
    </hello-world>

    The output obtained is a file a0.txt output:

     A SOA Programmer||Hello World!

iWay Software