Ignore order of elements using xs:extension

前端 未结 3 1378
粉色の甜心
粉色の甜心 2021-02-19 04:33

How can I design my xsd to ignore the sequence of elements?

   



        
3条回答
  •  甜味超标
    2021-02-19 05:17

    Here is the explanation of the restriction: http://marc.info/?l=xerces-j-user&m=118712527901786&w=4

    The only extension you can make to complex type with an "all" model is to add some attributes. You can't extend with new elements.

    In my case I've done something like that:

    
    
    
        
            
                
            
        
    
        
            
                 
                
            
        
    
        
    
    

提交回复
热议问题