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.  Replaceing Namespace from xml messages in WTX

    Posted 11/04/11 10:06 AM

    Originally posted by: SystemAdmin


    I have a senario whrere I need to count no of characters present in a xml structure without Namespace characters.
    <pc:Strd>
    <pc:CdtrRefInf><pc:Tp><pc:CdOrPrtry><pc:Cd>SCOR</pc:Cd></pc:CdOrPrtry><pc:Issr>ISO</pc:Issr></pc:Tp><pc:Ref>RF1234567890123456</pc:Ref></pc:CdtrRefInf>
    </pc:Strd>
    In the above data I need to count the length of entire data. But while counting I need to excule the namespace like 'pc:' here.
    I can do a SUBSTITUE("pc:","") for this purpose. But I am not sure that always 'pc:' will come as Namespace.
    So is there any Function in WTX which I can use for replacing Namespaces?
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 2.  Re: Replaceing Namespace from xml messages in WTX

    Posted 11/04/11 03:30 PM

    Originally posted by: thorstenhirsch


    Sure you can - just copy the input card to the output and remove the namespace prefix in the output card's settings.
    But that's a ridiculous task. I don't think that you really want to do that.
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 3.  Re: Replaceing Namespace from xml messages in WTX

    Posted 11/06/11 09:42 AM

    Originally posted by: Dhiren.Ghelani


    the xml should have a namespace declaration. you can use word function around it to know the namespace.. again not sure why you have to do it and it sounds daft.
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 4.  Re: Replaceing Namespace from xml messages in WTX

    Posted 11/07/11 05:44 AM

    Originally posted by: SystemAdmin


    I need to count the no of characters in the <Strd>xxxx</Strd> without Namespace characters.
    Thats the reason I want to remove the Namespace for a particular group and not for entire data.
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender