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.  Map to unescape '<' character

    Posted 10/10/10 10:40 PM

    Originally posted by: Liv2luv


    I have a WTX map running on datapower, Input for the map can be a text or xml file. The map is used as a wrapper to convert text messages into xml. No issues in case of text input. For XML input, the < and > are escaped as &lt ; and &gt ; (with-out space) respectively. For example:

    Input xml text
    
    <?xml version=
    "1.0" encoding=
    "utf-8"?> <invoice> <item> <description>Pilsner Beer</description> <qty>6</qty> <unitPrice>1.69</unitPrice> </item> </invoice>
    


    output (after coming out of WTX map)
    
    <tag>&lt ;?xml version="1.0" encoding="utf-8"?&gt ; &lt ;invoice&gt ; &lt ;item&gt ; &lt ;description&gt ;Pilsner Beer&lt ;/description&gt ; &lt ;qty&gt ;6&lt ;/qty&gt ; &lt ;unitPrice&gt ;1.69&lt ;/unitPrice&gt ; &lt ;/item&gt ; &lt ;/invoice&gt ;</tag>
    


    the XML is wrapped in <tag/> element. how can the < and > be unescaped ? My project interchange is attached.

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


  • 2.  Re: Map to unescape '<' character

    Posted 10/11/10 11:44 AM

    Originally posted by: phil2030


    I haven't used DataPower but have you tried NOT defining your output as XML? I.e Define it manually as just a "Tag" item with initiator "<tag>" and terminator "</tag>"?
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 3.  Re: Map to unescape '<' character

    Posted 10/12/10 09:54 AM

    Originally posted by: Liv2luv


    I tried with the initiator and terminator as <tag> and </tag> respectively. Find it working with out escaping the xml '<'>' tags.

    In the meantine, I've encoded the xml stream into base64 and got it working. Thank you for your help.

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