See if org.apache.cocoon.xml.dom.DOMStreamer will do the job for you. It is used by org.apache.cocoon.components.language.markup.xsp.XSPObjectHelper
Artur... > -----Original Message----- > From: Simon Brooke [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 22, 2002 1:37 PM > To: [EMAIL PROTECTED] > Subject: Migrating DOM based XML generators > > > Hi > > Some of you may know (of) me, I'm the guy who wrote maybeupload. > > I'm looking at how to migrate a lot of my stuff to Cocoon. Currently my > DocumentGenerator interface generates a DOM2 Document (see > > <URL: > >http://www.weft.co.uk/library/jacquard/documentation/uk/co/weft/domutil/DocumentGenerator.html > >) > > I have a *lot* of classes which implement this interface.To plug them > into Cocoon I need to generate SAX events and currently I don't. > Obviously generating SAX events as the document is being built is going > to be quicker than building a document tree and then tree-walking it to > generate the SAX events, so if I decide that Cocoon is the right road > to go down I've got a lot of rewriting to do. But as a quick fix, does > someone have a class which implements > org.apache.cocoon.generation.Generator, and which (in its generate() > method) walks a DOM tree constructed by something else? It would save > me a lot of grief. > > -- > [EMAIL PROTECTED] (Simon Brooke) http://www.jasmine.org.uk/~simon/ > > [ This .sig intentionally left blank ] > > --------------------------------------------------------------------- > 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: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>