JAXB binding file: XmlAdapters and package name

前端 未结 5 1003
渐次进展
渐次进展 2021-02-04 04:45

I have a binding file like this



        
5条回答
  •  别那么骄傲
    2021-02-04 05:07

    I had this problem as well, solved it using this.

    The basic premise is that you include a schema in your XJC compilation with following contents:

    
      
        
          
        
      
    
    

    You then adjust the package name to where you want the generated adapters to be placed. XJC will believe that this schema is part of the schema set for W3C XML Schema itself and will honour the bindings in it.

提交回复
热议问题