Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] MOXy JAXB SAXSource unmarshall with validation does not work

Title: MOXy JAXB SAXSource unmarshall with validation does not work
Hi Daniele,

This issue has been fixed in the upcoming EclipseLink 2.2 release.   A nightly drop can be obtained from:
Relevant Bug:
-Blaise

Adriano Daniele wrote:

Hello,
i have substituted jaxb impl with moxy but using unmarshall(Source) the validation does not work.

SAXSource saxSource = new SAXSource(myXmlReader, myFileInputSource);
Unmarshaller unmarshaller = moxyContext.createUnmarshaller();
unmarshaller.setSchema(mySchema);
unmarshaller.setEventHandler(myEventHandler);
unmarshaller.unmarshal(saxSource);

Using jaxbimplContext instead of moxyContext the validation will work.

The validation work too if i use moxyContext and unmarshal(InputStream).

Unfortunately i need sax events.
Can you help me to understand what is wrong in my example?

Thank you.
Daniele


_______________________________________________ eclipselink-users mailing list eclipselink-users@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/eclipselink-users

Back to the top