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, <st...@heliossoftware.com> 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 jackson-user+unsubscr...@googlegroups.com.
> To post to this group, send email to jackson-user@googlegroups.com.
> 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 jackson-user+unsubscr...@googlegroups.com.
To post to this group, send email to jackson-user@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to