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.
Is it zero if not specified?
you can always define the maximal length of a string in xsd. Just add the attribute maxLength resp. minLength .
The lexical and value spaces of xsd:string are the set of all possible strings composed of any character allowed in a XML 1.0 document without any treatment done on whitespace.
An XML schema definition (XSD), is a framework document that defines the rules and constraints for XML documents. An XSD formally describes the elements in an XML document and can be used to validate the contents of the XML document to make sure that it adheres to the rules of the XSD.
The default is unlimited length - the spec say that xs:string
is '...finite-length sequences of characters...'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With