The examples that I have seen only show "neat" cases
where there is no intermixing of text and content..
Case 1: <text>I want to remember this date,</text><date/><text>, forever!</text>

I want to see an example of how to parse the following:
Case 2: <text>I want to remember this date,<date/>, forever!</text>

In Case 1, the text is all neatly contained in tags.
In Case 2 however, the text mixes with the subtags.  The documentation
did not show this kind of example.

Bob

----- Original Message ----- 
From: "Sandeep Takhar" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, November 02, 2001 9:52 AM
Subject: Re: Digester content with elements


> I don't understand how this is any different than the
> stuff that comes with the documentation.
> 
> -sandeep
> --- Scott Atwell <[EMAIL PROTECTED]> wrote:
> > Could you not use a DOM parser, e.g. xerces, to do
> > this?
> > 
> > Regards,
> > Scott
> > 
> > ----- Original Message -----
> > From: "Bob Byron" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List"
> > <[EMAIL PROTECTED]>
> > Sent: Friday, November 02, 2001 3:46 PM
> > Subject: Re: Digester content with elements
> > 
> > 
> > > Hmmm....  Is this too easy or too hard of a
> > question to be answered?
> > >
> > > Bob
> > > ----- Original Message -----
> > > From: "Bob Byron" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List"
> > <[EMAIL PROTECTED]>
> > > Sent: Thursday, November 01, 2001 3:16 PM
> > > Subject: Digester content with elements
> > >
> > >
> > > 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
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > >
> > 
> > 
> > --
> > To unsubscribe, e-mail:  
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Find a job, post your resume.
> http://careers.yahoo.com
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to