06-03-2021 10:27 AM
I’m having trouble using the XML Generator with data that contains special symbols and characters. All the usual suspects (<, >, &, ", ', ) have been taken care of by using the HTML notations <, >, &, etc., but I’m having trouble with others that I feel should work. For instance, the symbol for the registered sign, ®, should be notated as ®, however, the XML generator gives me an error stating that “the entity, reg, is referenced but not delcared.” How do I go about declaring these. I have quite a number of symbols and accented/uumlat’ed letters that I need to use. Whether I use the rendered symbol or the HTML notation, the XML Generator fails.
How can I successfully include these symbols in my XML messages so that the XML Generator doesn’t see them as errors? See pics below for examples of my issue.
06-03-2021 11:41 AM
Replacing ® with the decimal equivalent may work (ie, ®). There is
also an "Escape Special Characters" checkbox which will escape many special
characters.
For example, < -> <
Though representation may not be correct if already escaped, for example, < -> &lt;
06-03-2021 12:57 PM
I tried playing with the “escape special characters” option, but it just dropped my special charcter data instead of leaving the escaped notations as they were.
06-03-2021 01:12 PM
Hmmm… Frustrating indeed. Let me conduct an experiment too.
06-03-2021 01:47 PM
I’m wondering if there’s a way to make the XML Generator and the XML Formatter ignore escaped codes and leave them as they are instead of rendering them. It would be nice if ®/&174 behaved the same way as < and >
Thanks for helping me look at this!