"<Code/>" and "<Code></Code>" (and for that matter "<Code />") are completely equivalent in XML, so you can't distinguish them on input or control which representation is used on output. There's no reason to, because any recipient of the XML will treat them identically.
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference