commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Antonio Pérez Testa <>
Subject Re: [digester] reading embedded HTML (or other mixed text)
Date Fri, 21 May 2004 06:17:41 GMT
Try surrounding the content with <![CDATA[ ... ]]>

<content><![CDATA[ Hello world! <i>This text is italic</i> and <b>this

text is
bold</b> This is plain text.]]></content>

Bill Keese wrote:

>Is there any way to tell digester to read in the entire content of an
>element (including text and sub-elements) as a single String? For
>example, if I persist e-mail to XML, I'd like to use digester to read
>the e-mail address list, etc., but the HTML content of the mail should
>be read verbatim.
><content> Hello world! <i>This text is italic</i> and <b>this
text is
>bold</b> This is plain text.</content>
>Class email {
>List to, cc, bcc;
>String subject;
>String content; // HTML content
>To unsubscribe, e-mail:
>For additional commands, e-mail:

Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información
de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda
prohibida su divulgación, copia o distribución a terceros sin la previa autorización escrita
de Indra. En el caso de haber recibido este correo electrónico por error, se ruega notificar
inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente.

The information in this e-mail and in any attachments is confidential and solely for the attention
and use of the named addressee(s). You are hereby notified that any dissemination, distribution
or copy of this communication is prohibited without the prior written consent of Indra. If
you have received this communication in error, please, notify the sender by reply e-mail

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message