Actually, I can use SAX to do this, but I have been hearing good things about the digester and wanted to see if I could utilize any of its advantages.
Would you recommend I use SAX instead? Bob ----- Original Message ----- From: "Scott Atwell" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, November 02, 2001 9:51 AM Subject: Re: Digester content with elements > 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]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>