Chris,
Once the parser gets it's hands on the XML file, it chews up the syntax and passes along events (or builds a DOM). There is really nothing that can be done, unless the markup is wrapped in a CDATA section or uses entities instead of actual tags: <![CDATA[some text<b>bold text....]]> -or- some text <b>bold text.... I guess you could also try to "re-create" the markup using another ContentHandler as a filter, but that seems a bit extreme as well. --Keith "Christopher W. Farnham" wrote: > > Is there some way that I can populate an object field with a String that > looks like this: 'some text <b>bold text<i>italic text</i></b> more text'. > > Put another way, I'd like to grab the text inside the title elements > with its markup and populate > a String property on my Java object. > <title>some text <b>bold text<i>italic text</i></b> more text</title> > > I've looked through the documentation and played around with the > UnmarshallListener but no > obvious solution came to me. > > Thank you, > Chris > > Christopher Farnham > Senior Consultant at Wrycan, Inc. > > [EMAIL PROTECTED] > http://www.wrycan.com > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
