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.  XML character entity reference

    Posted 06/21/12 02:41 PM

    Originally posted by: SystemAdmin


    WTX 8.3.04

    My map has 2 output cards. The first output card is non-XML and contains multiple rows of 2 values (quoted and comma-delimited) like so:

    "COMPANY NUM","COMAPNY NAME"
    "0001","A & B Trucking"
    "0002","Crandall <Brothers> Flowers"
    "0003","Anderson Auto"

    The 2nd output card is XML-based, and the contents of the 1st output card is used to populate one of its XML elements like so:

    <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
    <Header></Header>
    <Body>
    <Response>
    <TargetObject>"COMPANY NUM","COMPANY NAME"
    "0001","A & B Trucking"
    "0002","Crandall <Brothers> Flowers"
    "0003","Anderson Auto"
    </TargetObject>
    </Response>
    </Body>
    </Envelope>

    But what I'd like to see is:

    <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
    <Header></Header>
    <Body>
    <Response>
    <TargetObject>"COMPANY NUM","COMPANY NAME"
    "0001","A & B Trucking"
    "0002","Crandall <Brothers> Flowers"
    "0003","Anderson Auto"
    </TargetObject>
    </Response>
    </Body>
    </Envelope>

    I've experimented with the Exclude Character Restriction and used the Reference string, but the result is the same. I cannot get an & in the output, it's being escaped.

    Does the xmlsimp.xml file come into play, by overriding the value and translating the & to the escaped value?

    Any help you be appreciated.
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 2.  Re: XML character entity reference

    Posted 06/21/12 02:45 PM

    Originally posted by: SystemAdmin


    Looks like the values in my previous post were translated, so I'm going to add an asterick around the special charcaters to prevent them from being translated:

    This is what is being produced by the 2nd output card:

    <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
    <Header></Header>
    <Body>
    <Response>
    <TargetObject>&*quot;COMPANY NUM&*quot;,&*quot;COMPANY NAME&*quot;
    &*quot;0001&*quot;,&*quot;A &*amp; B Trucking&*quot;
    &*quot;0002&*quot;,&*quot;Crandall &*lt;Brothers&*gt; Flowers&*quot;
    &*quot;0003&*quot;,&*quot;Anderson Auto&*quot;
    </TargetObject>
    </Response>
    </Body>
    </Envelope>
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender