ZVON > References > XML Schema 2001 Reference
index | >> Schema << | DTD

string

Annotation
Documentation

 
Source http://www.w3.org/TR/xmlschema-2/#string
Facets enumeration | length | maxLength | minLength | pattern | whiteSpace |
Properties bounded : false | cardinality : countably infinite | numeric : false | ordered : false |

Schema

<xs:simpleType name="string" id="string">
     <xs:restriction base="xs:anySimpleType">
          <xs:whiteSpace value="preserve" id="string.preserve"/>
     </xs:restriction>
</xs:simpleType>


Occurs in Schema Tutorial examples:
The document root element is from null namespace
The document root element is from some particular namespace
Top-level elements, null namespace
Top-level elements, non-null namespace
elementFormDefault unqualified for not-top-level elements, namespace non-null
elementFormDefault qualified for not-top-level elements, namespace non-null
Element with text only
Element with mixed content (text and only one element)
Element which contains elements only (order does not matter)
Element which contains elements only (order is important)
Element which contains mixture of two elements (can appear more times)
Element which contains one of two elements
Element which contains two "patterns" (sequences), in any order
Element contains text only and one attribute
Element is either a fixed string or an integer
Element can contain a string from an enumerated set
Element can contain a mixture of elements
Limiting string length
String must contain e-mail address
nillable, xsi:nil
Element and type have the same name
Error - simpleType and complexType have the same name
Redefine element
Attribute block set to "extension"
XML Schema - blockDefault attribute
Combining block and blockDefault attributes
Attribute block and xsi:type
Abstract type
Annotating your schema
Target namespace is not null, attributeFormDefault is qualified
Target namespace is not null, attributeFormDefault is unqualified
Target namespace is null
Extension of a sequence
Extension of a choice
Restriction of a sequence
Restriction of a choice
"Sequence" from "all"
"Sequence" from "choice"
Target namespaces are the same (non-null)
Target namespaces are the same (null)
Including document has non-null target namespaces, included null target namespace