I am in the process of writing an AJAX web application that talks to an ASP.NET webservice. This webservice returns data in XML which is great; I just grab the document element from the responseXML and I'm on my way.

The problem is, some of the webservice functions return HTML buried in the XML (which is fine because HTML or atleast XHTML is a subset of XML). I want to be able to get right at the HTML that is buried in the XML and spit it right out on the page, but the XML DOM object doesn't seem to support that (converting back to raw XML that is).

Is there something I'm missing, or am I going to have to recompose the HTML on the client side by traversing the DOM object? Is there a better solution?