hi reuben,

when inheriting from the AbstractDOMTransformer you'd be overriding the
transform method, and there do the work you want to do; you're given a
Document (which represents the SAX events produced earlier in the pipeline),
which you can process in any way you like and at the end return it. the
Document you return will then be streamed as SAX events to the other
components in the pipeline.

> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Auftrag
> von Reuben Christie
> Gesendet: Mittwoch, 3. Dezember 2003 19:44
> An: Cocoon Apache
> Betreff: how to create XML DOM from SAX event
>
>
>
> i have tried to extend the AbstractDOMTransformer class. and now
> i dont find
> anyhelp for ,"how to work with transform method"? it takes
> Document argument
> and returns the document.but which other methods do I need to
> implement. I m
> new bie and have started writing transformer straight away so, please help
> me.
> here is my code.i want to now get the Document object of the sax
> event that
> has come from generator into my transformer.where do I write my
> code ? do i
> have toimplement startElement and endElement methods? or just
> carry on with
> transformer method? and another question is,
>
> what does this transformer passes to next componanat? SAX event or DOM ?
>

<snip/>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to