Add attributes to a simpletype or restriction to a complextype in Xml Schema

前端 未结 2 586
执念已碎
执念已碎 2021-01-30 10:30

The problem is as follows:

I have the following XML snippet:


The problem is that I ca

2条回答
  •  清酒与你
    2021-01-30 10:37

    To add attributes you have to derive by extension, to add facets you have to derive by restriction. Therefore this has to be done in two steps for the element's child content. The attribute can be defined inline:

    
      
        
      
    
    
    
      
        
          
            
              
                
                
                
              
            
          
        
      
    
    

提交回复
热议问题