You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by nanomonk <br...@inbox.ru> on 2008/02/13 11:56:29 UTC
response xml from Document
so, I have an xml generated by java(in Document now)...
I need to do response this xml to client...
pls tell me a true-way how to do that with cocoon 2.2?
generally, task:
request from client, then (according to parameters of request) generating on
java response as xml...
--
View this message in context: http://www.nabble.com/response-xml-from-Document-tp15454632p15454632.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: response xml from Document
Posted by Joerg Heinicke <jo...@gmx.de>.
On 13.02.2008 05:56, nanomonk wrote:
> so, I have an xml generated by java(in Document now)...
> I need to do response this xml to client...
> pls tell me a true-way how to do that with cocoon 2.2?
I guess you are talking about a DOM Document (org.w3c.dom.Document)?
Then you can use the org.apache.cocoon.xml.dom.DOMStreamer and its
stream method. But it very much depends on how you plug your Java code
into Cocoon since you need access to a SAX ContentHandler.
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org