Hi,

I finished a first version of a DigesterTransformer (see
http://jakarta.apache.org/commons/digester.html). It maps an XML stream to
Java classes and uses rules for this specified in an XML document.

Our use for it is to connect our user interface to a business model built in
EJB's. It's an alternative for Castor unmarshall (the current Castor
transformer only marshalls data to XML), and we will try to use the digester
to update java classes which wouldn't be possible using Castor (only
create). 

TODO:
- Output status or error messages in resulting XML document, currently
there's no output.
- Have a configurable command class that is executed when the digester is
finished. Here the java classes can be persisted or validated by business
rules or something.

As it's my first transformer, maybe someone can do a visible check if I am
on the right track?

TIA,
Michael Homeijer

-----Original Message-----
From: Michael Homeijer
To: '[EMAIL PROTECTED]'
Sent: 21-8-2002 12:15 
Subject: Writing a DigesterTransformer

Hi,

I am trying to find out what it takes to write a DigesterTransformer.
It uses the jakarta commons Digester to transform xml to java beans.

Has anybody tried something similar before? It seems the parse method on
the
digester cannot be intregrated directly into cocoon. Ideas on the
subject
are welcome.

TIA,
Michael

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

Attachment: DigesterTransformer.java
Description: Binary data

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

Reply via email to