Originally posted by: SystemAdmin
I'm acronym challenged sometimes so I'm not sure what WCC means, but I'm assuming that you're using some version of a Mercator or WTX map since you're on the WTX forum.
I've also had to provide this same type of formatted XML to customers on some earlier Oracle platforms. As a general practice I run what I call a "stub" map that has a text blob as its input(s) and a text blob as its output. My "text blob" is just a character text data item of unlimited size.
The main rule in the "stub" map is a RUN command that runs the original "executable" map that has all of my transformation rules. Since the output from the "executable" map is treated as a text blob by my "stub" map I can do additional formatting on the result of the RUN command, as needed.
In your case, I'm assuming that you want to insert a CR-LF sequence between each occurrence of the "><"stub" map.
=SUBSTITUTE(
RUN("
YourExecutableMapName", "
YourExecutableMapParameters"),
"><",
">" + SYMBOL(13) + SYMBOL(10) + "<"
)
If your original input format was this:
<Root><Element1>Data</Element1><Element2>Data</Element2></Root>
then the result from the "stub" map rule above would be:
<Root>
<Element1>Data</Element1>
<Element2>Data</Element2>
</Root>
#IBMSterlingTransformationExtender#DataExchange#IBM-Websphere-Transformation-Extender