Problem:
Given:
01 MyData PIC X(1000).
When MyData contains an Ampercent sign, it cannot be used as a normal character
so it is substituted as AmpercentHash38Semicolon.
When parsing MyData by XML PARSE the ampercent is not returned
neither as CONTENT-CHARACTER nor as CONTENT-CHARACTERS
Hint: The wording Ampercent, Hash, Semicolon used in that article to avoid viewing garbage characters in an HTML environment.
Resolution:
When using AmpercentHash38Semicolon the ampercent is returned in the register XML-NTEXT
as CONTENT-NATIONAL-CHARACTER Event.
Also, when specified as AmpercentHashx26Semicolon = its hex value.
When using AmpercentampSemicolon the ampercent is returned in the register XML-TEXT
as CONTENT-CHARACTER Event.
When MyData contains:
<data>My Data AmpercentampSemicolon Your Data</data>
3 Events will occur and the text have to be concatenated, i.e. by a STRING with POINTER.



