The issue is that you're wanting to read body text in addition to elements and attributes, and Digester was never really targeted for that use case.
If you really want to do something like this, check out NodeCreateRule, which will give you back a DOM structure representing the nested content. In your example, you'd get back a <text> element with three children ... the leading body content, the <br> element, and the trailing body content ... but at least you'd be maintaining the structure. Craig On Wed, 12 Jan 2005 14:03:16 +0100, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: > Hi, > > I run into a problem with digester, > when include (X)HTML in a XML file > that I want to read with Digester. > > I've an XML and ne of those values contain > (X)HTML: > <root> > ... > <texte> > <text>Nice to see you!<br/>Please be sure...</text> > ... > </texte> > ... > </root> > > Now I thought the String that is read by Digester > would be "Nice to see you!<br/>Please be sure..." > > NO! it doesn't contain "<br/>" > > like: "Nice to see you!Please be sure..." > > Am I doing something wrong? > > Best regards, > Matthias > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
