XSD: default integer value range

人盡茶涼 提交于 2019-12-04 03:01:13

Well, it depends on the data type...

If you look at the definition of integer at w3:

The value space of integer is the infinite set {...,-2,-1,0,1,2,...}

In essence it means that, for integers, by default there is no min/max value range since any integer can be represented.

On the other hand, for an int:

(...) maxInclusive to be 2147483647 and minInclusive to be -2147483648.

The list goes on for longs, shorts, etc...

You can read it in more detail here: http://www.w3.org/TR/xmlschema-2/#typesystem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!