Is there an implied range of default values โโwhen defining an element of a particular data type in an XSD file? For example, if I define an element of type integer:
<xs:element name="MyIntegerElement" type="xs:integer"/>
Does this have an implied value of min and max for which it will be checked? I know that I can explicitly define valid ranges, for example:
<xs:element name="MyIntegerElement"> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="16"/> </xs:restriction> </xs:simpleType> </xs:element>
But if I do not do this when I check the XML file against it, will it have a range of valid values โโby default? I knew the XSD documentation, but haven't found an answer yet.
xml xsd xml-validation
Jeff
source share