If you really want to build your own XML strings, put your external character in a CDATA tag. You just need to make sure that the end sequence (which is ]]>
) is not in the external file. If you find this, you have to encore or replace that with some other string before. So:
<![CDATA[*your external stuff containing < and > here*]]>