[Seaside] XML WAResponse with HTML code from WARenderCanvas

Philippe Marschall philippe.marschall at gmail.com
Wed Oct 17 17:23:26 UTC 2007

2007/10/17, Thomas Fischer <th.-fischer at web.de>:
> Hi list,
> I serve XML (KML) for a google maps web application via WAResponse and
> XMLWriter.
> It works fine, but now I need CDATA sections with HTML fragments inside the
> KML.
> I have a WARenderCanvas (as method argument to renderContentOn:). I like to
> use this canvas to produce the HTML code fragments.
> But: How can I produce the HTML code with the WARenderCanvas and pass the
> code to the stream of the XML WAResponse as HTML snippets?

WAHtmlBuilder in Seaside 2.8 is your friend here. It will give you
unescapted html. What you do with this is up to you. Please not that
CDATA will break if you have ]]> somewhere in your content. This is
the cause of about 0.02% of all rss feed errors.


> salute
> Thomas
> --
> View this message in context: http://www.nabble.com/XML-WAResponse-with-HTML-code-from-WARenderCanvas-tf4641522.html#a13256832
> Sent from the Squeak - Seaside mailing list archive at Nabble.com.
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

More information about the seaside mailing list