Re: How to write XML code into {CODE}
Looks like a bug in CODE() plugin. There are no switches, well you could always try to enable html in wiki pages on admin->wiki then check the allow html on wiki page save.
That is NOT a solution tho, as it does impose a general security issue especially if you have a wide audience of page and content editors.