First attempt:
Code:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html><head><title>Raw Data</title></head></html>
<body>
<textarea rows="40" cols="60">
<xsl:apply-templates/>
</textarea>
</body>
</xsl:template>
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
The document you gave as an example is not xml as you have one extra [code]</document>[code] tag.
--
Joe