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.  Copying XML data into string

    Posted 04/25/10 08:45 AM

    Originally posted by: ashw_r


    I am using the Package function to copy an XML node into a target string. The function seems to 'escape' the XML tag initiators. For e.g.
    '<Message>' comes out as '& lt;Message & gt;'

    Does anyone know if there is another function which can be used instead of Package to avoid this? Or any way to control the behaviour of the Package function?
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange


  • 2.  Re: Copying XML data into string

    Posted 04/28/10 10:12 AM

    Originally posted by: MartinEvans@


    What version of WTX are you using?

    I use PACKAGE() to output XML without issue, how are you capturing/viewing the input/output?

    I suggest you use the backup option to verify the input card and create an output card with a simple rule like =PACKAGE(nnnnn)

    View the data in a simple editor like vi or notepad to ensure the viewing app doesn't change the rendering of the data.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 3.  Re: Copying XML data into string

    Posted 05/03/10 03:19 AM

    Originally posted by: ashw_r


    I use WTX 8.2.0.3

    I followed this suggestion by user "thorstenhirsch" and it worked for me: -

    https://www.ibm.com/developerworks/forums/thread.jspa?messageID=13917594&#13917594

    "I also had this problem when putting XML data into a SOAP envelope. All the characters were transformed to quoted text.

    You can specify an "any" element in your xsd with processContents="lax". Then you put the inner XML data into this any element with PACKAGE()."

    Many thanks
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender