XML Characters Fixing Step
This step replaces characters that are invalid in XML by a marker.
Takes: raw document. Sends: raw document.
You need to specify what is the input encoding of the document. The only case where you do not have to specify the input encoding is for files with a Byte-Order-Mark. The output is done in same encoding as the input document, and Byte-Order-Marks are preserved if they are present.
The step recognizes raw characters as well as numeric character references (NCRs), such as
Replacement string — Enter the string to use to replace the characters. This string must be a valid Java Formatter string. The parameter passed in always the integer value of the Unicode code-point. For example, to replace the invalid character by its hexadecimal representation placed between braces use: "
If you want to remove the invalid characters: leave the replacement string empty.
Here are more examples. Note that some characters like
% have special function in this syntax and may need to be escaped.
|Invalid Character||Replacement String||Result|