JAXB - Property “Value” is already defined. Use to resolve this conflict

前端 未结 7 581
再見小時候
再見小時候 2020-11-30 19:01

Using JAXB to generate XML binding classes.

The schema is based on a set of legacy XML files, and includes this snippet:



        
7条回答
  •  时光取名叫无心
    2020-11-30 19:37

    Once after xxxx.xjb file is created for duplicate attribute name "value" (duplicate is default 'value' provided by JAXB) as below, run XJC command to create JAXB objects

    xjc -p "com.track.doc" -d "C:\JAXBDocuments\prasam\Desktop\JAXB_me\DealerTrace" appSamp.xsd -b xxxx.xjb

    appSmp.xsd:-

    
        
            
                  
            
                
    
    

    xxxx.xjb:-

    
    
        
    
            
                
                
            
                
                    
                
            
        
    
    

提交回复
热议问题