Forum Discussion
SmartBear_Suppo
Alumni
12 years agoIt looks like you are using the following as a reference for schema validation:
http://groovy.codehaus.org/Validating+X ... XML+Schema
But instead of passing in a StreamSource object as a param:
you are creating an array as a param:
Point that to a single XSD files instead.
Thanks,
Michael Giller
SmartBear Software
http://groovy.codehaus.org/Validating+X ... XML+Schema
But instead of passing in a StreamSource object as a param:
def schema = factory.newSchema(new StreamSource(new StringReader(xsd)))
you are creating an array as a param:
def schema = factory.newSchema((Source[]) xsdFiles.toArray())
Point that to a single XSD files instead.
Thanks,
Michael Giller
SmartBear Software