convert string to xml {{{Aparently your <xsp:expr>result</xsp:expr> returns a string and not and XML stream. You can use JTidy to convert your String to an XML stream. It's classes are available in Cocoon! Here's a code snip out of an XSP page that converts a POST from a brower based html editor to an XML stream.

You will need to tweak the Tidy parameters, but you get the idea, I guess. The DOM stream from JTidy is automatically converted to SAX by Cocoon (correct me if I'm wrong) so you can do regular transformations in the pipeline afterwards.

HTH, Bert }}}

ScherlerHtmlParsing (last edited 2009-09-20 23:39:57 by localhost)