XML Schema: how to have multiple identical elements?

前端 未结 2 1217
旧巷少年郎
旧巷少年郎 2021-01-19 14:08

I\'m having quite a hard time on constructing my 1st XML Schema. I need it to verify the correctness of an XML document that forms a questionnaire.
So here\'s the sectio

2条回答
  •  天命终不由人
    2021-01-19 14:59

    This should do it for the 1st xml:

    
        
            
                
                    
                        
                            
                        
                    
                
            
        
    
    
    

    The 2nd one looks like this:

    
        
            
                
                    
                        
                        
                        
                            
                        
                    
                
            
        
    
    

    Note the reference to the custom data type 'Values' from the 1st snippet.

    Thanks,
    Steff

提交回复
热议问题