Ok, I have created a simple Android app with 2 JAXB annotated classes. I
was able to marshal those classes with JAXB marshaller. But unmarshalling
generated errors (org.xml.sax.SAXNotRecognizedException). Then I changed to
fasterxml with existing JAXB annotations and it worked for both marshalling
and unmarshalling with similar xml output provided by JAXB. So I will try
to find a solution for the JAXB unmarshalling error, and in case it failed,
I will implement with fasterxml.

On Fri, May 26, 2017 at 7:23 PM, Martin Desruisseaux <
[email protected]> wrote:

> Le 25/05/2017 à 14:22, Sisinda Dinusha a écrit :
>
> > Yes, they support GPL / CDDL dual license.
> >
> In my understanding of [1], [2] and [3], we are allowed to use stax-api
> and jaxb-api under CDDL license provided that:
>
>   * We do not modify the source code (or at least not in the Apache SIS
>     project).
>   * We redistribute only the binaries (e.g. as Maven dependencies), not
>     the source.
>
> If I'm understanding right, fasterxml is under Apache 2 license, is that
> right? If so, then I think there is no objection in trying to use it on
> Android if it works.
>
>
> > Yes SimpleXML would be only on Android branch. xmlpullparser provided
> with
> > Android does not support annotations and will have to write much longer
> codes.
>
> Understood. Then the initial proposal (fasterxml with JAXB annotations
> under CDDL license) would be nice if it works. Otherwise SimpleXML seems
> fine to me.
>
>     Martin
>
>
>

Reply via email to