XSD: default integer value range

padegun.com

New Member
Is there an implied default value range when defining an element of a specific data type in an XSD file? For example if I define an element of type integer:\[code\]<xs:element name="MyIntegerElement" type="xs:integer"/>\[/code\]Does this have an implied min and max value that it will validate to? I know I can explicitly define the valid ranges like so: \[code\]<xs:element name="MyIntegerElement"> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="http://stackoverflow.com/questions/15486246/1"/> <xs:maxInclusive value="http://stackoverflow.com/questions/15486246/16"/> </xs:restriction> </xs:simpleType></xs:element>\[/code\]But if I don't do this when I validate an XML file against this will it default to a range of valid values? I've been digging around in the XSD documentation but haven't found the answer yet.
 
Back
Top