I\'ve been looking for solutions to this problem for far too long considering how easy it sounds so I\'ve come for some help.
I have an XML Schema which I have used
As far as I know, you just have to set the schema with Marshaller.setSchema() to a schema created by the SchemaFactory from your DDSSettings.xsd. This will turn validation on.
DDSSettings.xsd