> Hallo together ,
>
> i have a Generator with methode:
>
> public void generate()
> throws IOException, SAXException, ProcessingException {
>
>
> SAXParser parser = null;
> NodeDoc nodeDoc =null;
> try {
> this.dbmanager = (DBManager)
> this.manager.lookup(DBManager.ROLE);
> nodeDoc =
> dbmanager.runMail_InfoAppealAccepted();
> if(!nodeDoc.equals(null))
> {
> Convert2NodeDoc convert2NodeDoc
> = new Convert2NodeDoc();
> //Xmlobject1
> Mail_InfoAppealAcceptedType
> mail_InfoAppealAcceptedType =(Mail_InfoAppealAcceptedType)nodeDoc;
> //Xmlobject2
> documentType documenttype
> =convert2NodeDoc.createSendmail(mail_InfoAppealAcceptedType);
>
> mail_InfoAppealAcceptedType.addChild(documenttype);
> StringReader xmlReaderdoc = new
> StringReader(saveToString(nodeDoc));
> inputSource = new
> InputSource(xmlReaderdoc);
>
> StringReader xmlReader = new
> StringReader(saveToString(nodeDoc));
> inputSource = new
> InputSource(xmlReader);
>
> parser =
> (SAXParser)this.manager.lookup(SAXParser.ROLE);
> parser.parse(this.inputSource,
> super.xmlConsumer);
>
>
> }
> } catch (IOException e) {
> getLogger().error("StreamGenerator.generate()", e);
> throw new
> ResourceNotFoundException("StreamGenerator could not find
> resource", e);
> } catch (SAXException e) {
> getLogger().error("StreamGenerator.generate()", e);
> throw(e);
> } catch (Exception e) {
> getLogger().error("Could not get parser", e);
> throw new ProcessingException("Exception in
> StreamGenerator.generate()", e);
> } finally {
> this.manager.release( parser);
> }
> }
>
>
> i will to send the XmlObject1 and XmlObject to Parellel Pipeline
You do not send them as objects. In your generate method, you can use the
contentHandler and create all elements yourself (startDocument, startElement,
etc), or look at org.apache.cocoon.components.source.SourceUtil. You can use
the toSax static functions there, or create your own, use something like
SourceUtil.parse(this.manager, this.inputSource, super.xmlConsumer);.
Regards Ard
>
> but i don'T know how?
> --
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
>
> ---------------------------------------------------------------------
> 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]