You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "emmanuel.boudrant" <b7...@yahoo.fr> on 2002/06/10 17:43:27 UTC

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

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

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Digester can retrieve CDDATA ?

Posted by "emmanuel.boudrant" <b7...@yahoo.fr>.
Yes. But what rule I need to use (ex
setPropertyRule(...) ).

Thanx

 --- Janek Bogucki <ya...@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" <b7...@yahoo.fr>
> > Reply-To: "Jakarta Commons Developers List"
> <co...@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:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Digester can retrieve CDDATA ?

Posted by Janek Bogucki <ya...@studylink.com>.
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" <b7...@yahoo.fr>
> Reply-To: "Jakarta Commons Developers List" <co...@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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>