commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Keese <bi...@tech.beacon-it.co.jp>
Subject [digester] reading embedded HTML (or other mixed text)
Date Fri, 21 May 2004 00:34:17 GMT
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.

<email>
<to>bill</to>
<subject>test</subject>
<content> Hello world! <i>This text is italic</i> and <b>this text
is
bold</b> This is plain text.</content>
</email>

====>

Class email {
List to, cc, bcc;
String subject;
String content; // HTML content
};



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message