XSD Limited / Facets
Translation results:
XML Schema is an XML-based replacement for DTDs.
XML Schema describes the structure of an XML document.
The XML Schema language can also be referenced as XSD (XML Schema Definition).
XSD Limited / Facetssyntax
Restrictions are used to define acceptable values for XML elements or attributes. Restrictions on XML elements are called facets.
XSD Limited / Facetsexample
The following example defines an element named "age" with a qualification. The value of age cannot be lower than 0 or higher than 120:
<xs:element name="age"> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="0"/> <xs:maxInclusive value="120"/> </xs:restriction> </xs:simpleType> </xs:element>