On Sep 21, 2006, at 12:07 PM, Charles E. Heizer wrote:
Thanks,
I went back a search through them and found one good thread but it
did not work.
Here is what I found ...
I use this simple snippet of XSLT I found on the web:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/
XSL/ Transform"> <xsl:output method="xml" indent="yes" /> <!--
here's the trick --> <xsl:template match="*"> <xsl:copy> <xsl:copy-
of select="@*" /> <xsl:apply-templates /> </xsl:copy> </
xsl:template> <xsl:template match="comment()|processing-instruction
()"> <xsl:copy / > </xsl:template> </xsl:stylesheet>
Throw this in a constant called kXLTPrettyPrint and then just:
tos.Write(XMLDoc.Transform(kXLTPrettyPrint)) //tos is your
TextOutputStream
I tried this and all I got was a error that says "An exception of
class XmlException was not handeled." "XML parser error 4: not well-
formed(invalid token)"
Yes, that's the same problem I was having. Sorry I can't be of more
help.
ian
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>