struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Byron" <bby...@radit.com>
Subject Digester content with elements
Date Thu, 01 Nov 2001 21:16:37 GMT
I was wondering how to digest content that contains additional
elements.

For example, I have two tags "text" and "date".  I want to parse
the following:
<text>I want to remember this date, <date/>, forever!</text>

Ultimately I want to end up with three objects as follows 
(I hope you get what I am inferring below):
MyText("I want to remember this date, ");
MyDate();
MyText(", forever!");

Granted, it would be easy enough to do:
<text>I want to remember this date, </text><date/><text>, forever!</text>
But, I prefer to do the first way.

Thank You,
Bob Byron


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message