DataPower

DataPower

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Special Chars | Language PT

    Posted 08/07/20 04:29 PM

    Hi,

    I have a MPGW with request set as XML, I need it as it is to process a XSLT file, however, there is a tag in the XML request like these:

    <R67000030>N.º 8847</R67000030>

    And DataPower is translating it to:

    <R67000030>N.&#186; 8847</R67000030>

    Is there a solution for this?

    If I setup the request to pass-thought os non-xml, it works, however, the XSLT I have will not be processed.

    Thanks!



    #DataPower
    #Support
    #SupportMigration


  • 2.  RE: Special Chars | Language PT

    Posted 08/10/20 08:43 AM

    Hi Leandro,

    DataPower escaping special characters in XML is nothing that should concern you.

    Unescaped representation should only be needed for humans, and these should use a XML reader like e.g. a web browser which ensures to render escaped XML characters on presenting to a human, while under the covers ("page source") certain characters might be escaped.

    If a receiving application has a challenge with escaped XML characters, than it is not XML-spec compliant and you potentially would need to handle the payload as non-XML... (well, maybe shot to heavy).

    So what you can do in DP WSP/MPGW/XMLFW service which expose their XML Manager User is to configure a Compile Options Policy with Minimal Output-Escaping (https://www.ibm.com/support/knowledgecenter/SS9H2Y_7.7.0/com.ibm.dp.doc/faq_characterencoding.html). This can often help achieve your non-XML-spec desire. ;-)


    Best Regards,

    August



    #DataPower
    #Support
    #SupportMigration