If your XML is being constructed with string concatenation then you'll be wanting to escape it.
& should become & while < and > should become < and > respectively.
There may be others too.
Of course you should really use a proper XML encoder rather than trying to do it yourself for many reasons.