| For some reason, when you output witango doms to text, it follows a strange output style. The way around this is to use XSLT. If you want your xml clean indented, try this, if your dom is local$mydom <@assign local$outstyle '<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" encoding="ISO-8859-1" indent="yes"/> <xsl:strip-space elements="*"/> <xsl:template match="*"> <xsl:copy> <xsl:copy-of select="@*" /> <xsl:apply-templates /> </xsl:copy> </xsl:template> </xsl:stylesheet>'> <@assign local$result '<@xslt local$thexml stylesheet="<@var local$outstyle>">'> Where local$result is your clean outputed xml in text. If you want your outputed xml to be without any added whitespace, change indent="yes" to indent="no" -- Robert Garcia President - BigHead Technology VP Application Development - eventpix.com 13653 West Park Dr Magalia, Ca 95954 ph: 530.645.4040 x222 fax: 530.645.4040 On Apr 11, 2006, at 9:39 AM, John McGowan wrote:
________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf |
- Witango-Talk: Outputting DOM variable as Text John McGowan
- Re: Witango-Talk: Outputting DOM variable as Text Robert Garcia
