[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-user
Subject:    Re: Digester conditional parsing
From:       Janek Bogucki <yan () studylink ! com>
Date:       2004-03-30 14:24:24
Message-ID: 200403301411.i2UEBf3r026895 () mailer ! progressive-comp ! com
[Download RAW message or body]

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: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic