when your generator extends ServiceableGenerator, you can put in SAX events
directly with the contentHandler in the generate() method.
For example,
contentHandler.startDocument();
contentHandler.startElement("", "document", "document",new AttributesImpl());
contentHandler.endElement("", "document", "document");
contentHandler.endDocument();
So, destillate the valuable stuff out of your objects, and put it into sax
events with startElement, endElement, and characters. Really very easy. Remove
your transformers, and look at the xml you generate this way,
Regards Ard
>
>
> hello Schrijvers,
>
>
> SourceUtil.parse(this.manager, this.inputSource, super.xmlConsumer);.
>
> bus there are methode
> SourceUtil.parse(this.manager, Source source, super.xmlConsumer);
>
>
> do you know how i can get Source from InputSource ?
> rachid
> -------- Original-Nachricht --------
> Datum: Thu, 23 Nov 2006 13:40:10 +0100
> Von: "Ard Schrijvers" <[EMAIL PROTECTED]>
> An: [email protected]
> Betreff: RE: pass on a Java Object from generator over more
> transformer to Serializer
>
> >
> > >
> > > Hello together,
> > >
> > > i have a Problem i wish pass on a Java Object from generator
> > > over more transformer to Serializer but i dont know how?
> >
> > I already answered this in a thread some time ago..
> >
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=116340776024270&w=2
>
> >From a generator to a transformer as Florian also explains, you pass SAX
> events. What do you want to achieve. You can pass objects from flowscript
> into a jx template
>
> Ard
>
> >
> > i need your help
> >
> > --
> > "Ein Herz für Kinder" - Ihre Spende hilft! Aktion:
> > www.deutschlandsegelt.de
> > Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen
> > America's Cup-Yacht!
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
"Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de
Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]