Remove Outer Tag (com.ibi.preemit.XDDeTag)

How to:

Syntax:

com.ibi.preemit.XDDeTag

Description:

This preemitter removes the outermost tag from the XML document and returns the remainder of the document. If the inner document is an XML file, it returns an XML or a flat file, if a flat file is contained within the outer tag.

For example, the Remove outer tag preemitter can transform an XML file into a flat file (extract flat file from XML) if the flat file were originally transformed into XML by surrounding it with outer tags.

Parameters:

Parameter

Description

Name

Name of the new Preemitter object definition.

Description

Description for the new Preemitter object definition.



x
Procedure: How to Use the Remove Outer Tag Preemitter
  1. Select Remove outer tag XDDeTag Preemitter 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 XDDetag.

    After you add the XDDetag Preemitter to iWay Service Manager, create an outlet, PreemitterOutlet and add the XDDeTag Preemitter 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 the channel is as follows.

    <test>This is a detag preemitter test</test>

    The output obtained is a file a*.txt:-

    This is a detag preemitter test.


iWay Software