routis
May 4th, 2006, 05:10 AM
In a previous post (http://forum.springframework.org/showthread.php?t=24083), 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 (http://forum.springframework.org/showthread.php?t=24586) 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 (http://javaton.blogspot.com/2006/04/jaxb-2-validate-against-xml-schema.html)).
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.
Poutsma corrected the problem by introducing two new class Jaxb1Marshaller and Jaxb2Marshaller.
After Poutsma made available the nightly source (http://forum.springframework.org/showthread.php?t=24586) 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 (http://javaton.blogspot.com/2006/04/jaxb-2-validate-against-xml-schema.html)).
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.