cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marko Niinimaki <...@mail.cern.ch>
Subject How do I generate XML in cocoon 2, as in cocoon 1.x?
Date Mon, 11 Feb 2002 13:02:51 GMT

I have a little java program that returns a string that contains XML.
In order to create a html output of it, I've used the following stuff:

<xsp:logic><![CDATA[
String s = "<foo>hello</foo>";
//of course, in real life, I call an external program that
//generates s, like s = DataAccess.getLoginName..
]]>
</xsp:logic>


<xsp:expr>
      this.xspParser.parse(
        new InputSource(
          new StringReader(s)
        )
      ).getDocumentElement()
</xsp:expr>

How do I do the same stuff with cocoon 2? 

Yours,
Marko




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message