That's a veeeery wide question... Since this is an AJAX forum, I'll assume you're talking about a proper AJAX response, which would be an XML document. This is possible:
Code:
<!-- This comment will not affect the document structure -->
<test>
  <!-- Nor will this -->
  <hello />
</test>