阅读背景:

如何在没有编组的情况下验证JAXB 2.0中的模式?

来源:互联网 

I need to validate my JAXB objects before marshalling to an XML file. Prior to JAXB 2.0, one could use a javax.xml.bind.Validator. But that has been deprecated so I'm trying to figure out the proper way of doing this. I'm familiar with validating at marshall time but in my case I just want to know if its valid. I suppose I could marshall to a temp file or memory and throw it away but wondering if there is a more elegant solution.I need to validate my JAXB objects before marsh




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: