xml 最大默认长度 xsd 字符串
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10134714/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Max default length xsd string
提问by Sharpeye500
What is the default max length of xsd string if max length is not specified?
https://www.w3schools.com/xml/schema_facets.asp
maxLength - Specifies the maximum number of characters or list items allowed. Must be equal to or greater than zero.
如果未指定最大长度,xsd 字符串的默认最大长度是多少?
https://www.w3schools.com/xml/schema_facets.asp
maxLength - 指定允许的最大字符数或列表项数。必须等于或大于零。
Is it zero if not specified?
如果没有指定,它是零吗?
回答by MiMo
The default is unlimited length - the spec say that xs:stringis '...finite-length sequences of characters...'
默认值是无限长度 - 规范说xs:string是“......有限长度的字符序列......”

