commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "emmanuel.boudrant" <b...@yahoo.fr>
Subject RE: Digester can retrieve CDDATA ?
Date Tue, 11 Jun 2002 09:15:45 GMT
Hi,

Work fine with
digester.addBeanPropertySetter("script")

but with '<![CDATA[' and ']]>', digester read script
vales as null

<script><![CDATA[
    CREATE TABLE CUSTOMER ...
    ]]>
</script>

When I remove '<![CDATA[' and ']]>', that's work fine.

Thanx,
Emmanuel

 --- Scott Sanders <ssanders@nextance.com> a écrit : >
Use the BeanPropertySetterRule.
> 
> Digester.addBeanPropertySetter("script"), or
> something similar.
> 
> Scott
> 
> -----Original Message-----
> From: emmanuel.boudrant [mailto:b7st@yahoo.fr] 
>< Sent: Monday, June 10, 2002 9:19 AM
> To: Jakarta Commons Developers List
> Subject: Re: Digester can retrieve CDDATA ?
> 
> 
> Yes. But what rule I need to use (ex
> setPropertyRule(...) ).
> 
> Thanx
> 
>  --- Janek Bogucki <yan@studylink.com> a écrit : >
> Hi
> Emmanuel,
> > 
> > Do you want to use CDATA like this:
> > 
> > <listing>
> >  <table name="customer">
> >   <script><![CDATA[
> >     CREATE TABLE CUSTOMER ...
> >     ]]>
> >   </script>
> >   <fields>
> >    <field name="id" type="number(15)" />
> >    ...
> >   </fields>
> >  </table>
> > </listing>
> > 
> > I have used CDATA with Digester with no problem.
> The
> > CDATA stuff is handled
> > by the XML processor so Digester never knows about
> > it.
> > 
> > -Janek
> > 
> > > From: "emmanuel.boudrant" <b7st@yahoo.fr>
> > > Reply-To: "Jakarta Commons Developers List"
> > <commons-dev@jakarta.apache.org>
> > > Date: Mon, 10 Jun 2002 17:43:27 +0200 (CEST)
> > > To: commons-dev@jakarta.apache.org
> > > Subject: Digester can retrieve CDDATA ?
> > > 
> > > Hi,
> > > I use digester to retrive a xml repository like
> > that:
> > > 
> > > <listing>
> > > <table name="customer">
> > > <script>
> > > CREATE TABLE CUSTOMER ...
> > > </script>
> > > <fields>
> > > <field name="id" type="number(15)" />
> > > ...
> > > </fields>
> > > </table>
> > > </listing>
> > > 
> > > Is it possible, with digester, to retrive the
> > <script>
> > > CDDATA in my bean named Table. Table has 3
> > properties
> > > : String name, String script and an field
> > collection.
> > > 
> > > Thanx,
> > > -Emmanuel
> > 
> > 
> > --
> > To unsubscribe, e-mail:
> >
> <mailto:commons-dev-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:commons-dev-help@jakarta.apache.org>
> >  
> 
>
___________________________________________________________
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et
> en français ! Yahoo! Mail : http://fr.mail.yahoo.com
> 
> --
> To unsubscribe, e-mail:  
> <mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:commons-dev-help@jakarta.apache.org>
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:commons-dev-help@jakarta.apache.org>
>  

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message