Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Max default length xsd string

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?

like image 737
Sharpeye500 Avatar asked Apr 13 '12 03:04

Sharpeye500


People also ask

How is length defined in xsd?

you can always define the maximal length of a string in xsd. Just add the attribute maxLength resp. minLength .

What is xsd string?

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.

What is meant by xsd?

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.


1 Answers

The default is unlimited length - the spec say that xs:string is '...finite-length sequences of characters...'

like image 180
MiMo Avatar answered Oct 06 '22 15:10

MiMo