Enums don't match schema: problem with jaxb or xsd?

前端 未结 3 1467
天涯浪人
天涯浪人 2021-01-03 02:13

I\'m trying to use JAXB to unmarshal this file into Java objects. I know that there\'s a problem with SAX in J6 that rejects the maxOccurs line, and I\'ve changed it to

3条回答
  •  一向
    一向 (楼主)
    2021-01-03 02:42

    Instead of specifying a binding for each enum value, you can also use a globalBindings with typesafeEnumMemberName="generateName"

    
    
        
            
        
        
    
    

    see http://download.oracle.com/docs/cd/E17802_01/webservices/webservices/docs/1.5/tutorial/doc/JAXBUsing4.html#wp148515

提交回复
热议问题