XSD for having 2 root elements (1 at a time)

后端 未结 2 838
迷失自我
迷失自我 2020-12-10 21:10

So here is a complex/retarded situation. I am writing an XSD and there happens to be a requirement where i need 2 root elements (1 at any given time)



        
2条回答
  •  隐瞒了意图╮
    2020-12-10 21:34

    See this previous question. You can perform the equivalent of an on the root element by simply listing the possibilities in order, like this:

    
    
        
            
                 
                     
                  
               
        
        
        
    
    

提交回复
热议问题