While working on a template, I needed to comment out some sections of my code to find a bug, and then I found that nesting xen comments won't allow to save the template.
HTML:
<xen:comment>
<div>
Some content...
<xen:comment>more text..</xen:comment>
</div>
</xen:comment>