xml – How to put restrictions in a complexType in XSD

I have this code in xsd:


  
    
      
        
          
            
              

                    
                        
                    

              
              
              
              
              
              
              
            
             
          
        
      
    
  

I want to set a limit of 40 characters, but the examiner gives me a mistake. (The element type "xs: complexType" must be terminated by the matching end tag "").

Help