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. |
The Name and Description pane opens.
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 |