Unable to validate xml with Jaxb2Marshaller
In a previous post, I reported a "bug" in jaxb unmarshaller.
Poutsma corrected the problem by introducing two new class Jaxb1Marshaller and Jaxb2Marshaller.
After Poutsma made available the nightly source code I came up with the following problem:
I want to unmarshall an xml that depends to an xml schema that in turn includes other xml schemas, using Jaxb2Marshaller
Since the method setSchema(Resource) of Jaxb2Marshaller takes only one argument (the resource to the xml schema), I am not able to validate the XML. (Outside spring-oxm I can do it like this).
I would like to propose the addition of an overloaded setSchema method that accepts either a list (or array) of Resources, or a Schema object.