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

后端 未结 5 1916
别跟我提以往
别跟我提以往 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:17

    you can always define the maximal length of a string in xsd. Just add the attribute maxLength resp. minLength.

提交回复
热议问题