Thank you Tatu.  If I were to try to override this behavior, where should I 
look in Jackson?  For example, if I wanted to try to have Jackson skip 
over/ignore certain tags like <i>, </i>, <b> and </b>, where should I look?

On Monday, March 13, 2017 at 1:33:20 PM UTC-4, Tatu Saloranta wrote:
>
> Jackson XML backend does not really support mixed content -- content model 
> that has both non-whitespace text AND elements. This is difficult to 
> represent with databinding, and is mostly operated with XML-centric models 
> like DOM.
>
> There has been some talk about exposing this in some form or fashion, and 
> I think there's an open issue or two.
> But I am not aware of particularly clean design for exposing this; it 
> seems fundamentally at odds with typical POJOs that do not cater for XML 
> infoset.
>
> -+ Tatu +-
>
>
> On Mon, Mar 13, 2017 at 6:55 AM, <[email protected] <javascript:>> 
> wrote:
>
>> Is it possible to use Jackson to parse XHTML?  I am trying to parse this 
>> fragment, and the inline <i>,</i> and <b></b> tags are giving me some 
>> problems.
>>
>>      <div xmlns="http://www.w3.org/1999/xhtml";>
>>      <p>
>>        This is an <i>example</i> with some <b>xhtml</b> formatting.
>>      </p>
>>      </div>
>>
>> I'm getting an exception:
>> java.io.IOException: Expected END_ELEMENT, got event of type 1
>>
>> Is there a way to configure Jackson to make this work?
>>
>> Thanks,
>> Steve
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "jackson-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to