JAXB 2.1 - Customize xs:any binding

前端 未结 1 2029
北荒
北荒 2021-01-02 19:53

I want to generate java code from xsd using JAXB 2.1 XJC. I have an xsd schema provided and I can\'t change it. I would like to use xjc:simple mode while ge

1条回答
  •  不知归路
    2021-01-02 20:28

    You can use the Wildcard plugin from JAXB2 Basics. This allows you to customize lax/skip/strict wildcard binding modes:

    
    
    
    ...
    
        
            
                
                    
                
            
            
                
            
         
    
    ...
    
    
    

    You don't have to change the schema for this, you can use this customization via binding files.

    0 讨论(0)
提交回复
热议问题