IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  make xml element absent

    Posted 07/04/12 07:40 AM

    Originally posted by: Jaango


    I have an optional element "a", in the output xml type tree. What i want is the output as just
    
    <Root></Root>
    
    , in case the input field is "no", which is mapped to the element "a". If it is anything else, the same has to be mapped to element "a".
    
    <Root><a>ab</a></Root>
    

    Here is my projectinterchange format file(mapfile is NewMap1)
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 2.  Re: make xml element absent

    Posted 07/09/12 02:10 AM

    Originally posted by: KK_WTX


    Hi,

    In the XML format,if the field is mandatory and data is not present for that field then it will give empty tag.If it is a optional field it won't appear in the output.

    Note:

    Based on the editor this empty tag looks different.

    <Root></Root> (or) </Root>

    Thanks,
    KK.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender