Return to the RPG Tips
ILE RPG replaceXMLEntities()
Use this subprocedure when you need to escape common XML entities & (ampersand), < (less than), > (greater than), ? (single quote), and ? (double quote). Several web reports I generate using CGIDEV2 come in HTML or XML form, and those special XML characters must be escaped.
http://code.blackrobes.net/ile-rpg-replacexmlentities/
[report a broken link by clicking here]