On Tuesday 30 Mar 2004 2:21 pm, you wrote:
> Hi,
> I would like to know if it is possible to do conditional parsing with
> Digester :
>
> Example :
> ---------------
> I have this in my xml document :
> <girl type="blonde"/>
>
> -->According to the parsing of the 'type' attribute, I would like to create
> different objects.
>
> Is it possible to create an object dependant of the value of an attribute?
> How to do so?
>
>
> Thanks in advance,
> Eric.

FactoryCreateRule will allow you to do this IIRC.

http://jakarta.apache.org/commons/digester/apidocs/org/apache/commons/digester/FactoryCreateRule.html

-Janek

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

Reply via email to