XSD: how to restrict number of characters in string type attribute?

后端 未结 5 1914
别跟我提以往
别跟我提以往 2020-12-08 07:08

I have a question regarding adding restriction in my xml schema(xsd). I have a complex-type like:


   

        
5条回答
  •  执笔经年
    2020-12-08 07:22

    You need to create a simple type like so:

      
        
          
        
      
    

    and then use this new type in your schema:

      
        
          
        
        
      
    

    Marc

提交回复
热议问题