Validating against a Schema with JAXB

前端 未结 2 621
南方客
南方客 2021-01-04 09:37

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

2条回答
  •  鱼传尺愫
    2021-01-04 10:29

    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.

提交回复
热议问题