On Wed, Oct 16, 2002 at 01:57:38PM +0900, Tanmay Kumar wrote: > Hi all, > > I am finding Cocoon very useful for our project. Thanks a lot to the > developers... > I have one requirement like this. Is there any Cocoon class to address this > issue? > Input will be a DOM node, but while parsing the DOM node all SAX events > should be fir. > > Example: > > <R> > <A>101</A> > <B>World</B> > </R> > > While it got the root element as 'R', startElement() method should be > invoked with proper arguments i.e name, attributelist. > > Again when the child element is a text node as per DOM(101 in ex.) , > characters() method should be fired.
I think you want org.apache.cocoon.xml.dom.DOMStreamer: * The <code>DOMStreamer</code> is a utility class that will generate SAX * events from a W3C DOM Document. If you want to use this in a Transformer, have a look at AbstractDOMTransformer. --Jeff > > thanks, > Tans --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>