how xsd can represent different xml file?

前端 未结 3 620
心在旅途
心在旅途 2021-01-28 11:57

if I have this XML data Main.xml

  
 
  11 
  1 
 
 &         


        
3条回答
  •  我在风中等你
    2021-01-28 12:53

    The schema you are looking for looks something like this,

    
    
      
        
          
            
              
                
                  
                  
                  
                    
                      
                        
                          
                            
                              
                              
                              
                              
                            
                          
                        
                      
                    
                  
                
              
            
            
          
        
      
      
        
          
            
              
                
              
            
          
        
      
    
    


    This schema will work for all the 3 xml fragments.

提交回复
热议问题