Troubleshooting
Problem
XML escape character is not in output file as expected.
Symptom
XML escape character '&' is present in the XML Input file but is not present in the output file.
Cause
Using a Type Tree in output card but not using Xerces or Native Schema.
Environment
Running a WebSphere Transformation Extender(WTX)/IBM Transformation Extender(ITX) Map using Xerces or Native Schema in the input card and using a Type Tree in the Output card.
Diagnosing The Problem
When an input card uses Xerces or native schema, WTX/ITX converts escape characters to actual characters.
'&' is converted to '&'
'&' is converted to '&'
When an output card used Xerces or native schema, WTX/ITX converts actual characters (only XML escape characters) to XML escape characters.
'&' is converted to '&'
'&' is converted to '&'
Using a Type tree the XML escape characters are not converted.
Resolving The Problem
You can simulate the same automatic conversion as either Xerces or Native Schema by using Restrictions in the Type Tree.
Find the item element in the Type tree where you want conversion to occur.
In properties select Item Subclass -> Restrictions -> "Character".
In properties select Item Subclass -> Restrictions -> Rule -> "Exclude".
Double click on the same item element.
A screen will be displayed where you enter the excluded character, in this case the '&' and on the other side enter the Reference String as '&'
This will convert all the occurrence of '&' to '&' in the data, when the data is assigned to this element.
Document Location
Worldwide
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSVSD8","label":"IBM Transformation Extender"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Was this topic helpful?
Document Information
More support for:
IBM Transformation Extender
Software version:
All Versions
Document number:
1115553
Modified date:
10 March 2020
UID
ibm11115553