Manual de referencia XML Schema

Elemento XSD

Elemento Explicación
all Se permite que los elementos secundarios aparezcan en cualquier orden, y cada elemento puede aparecer cero o una vez.
annotation El elemento 'annotation' es un elemento de nivel superior que especifica los comentarios del esquema.
any Allow the creator to extend an XML document with elements not specified by the schema.
anyAttribute Allow the creator to extend an XML document with attributes not specified by the schema.
appInfo Specify information that the application must use in the annotation element.
attribute Define an attribute.
attributeGroup Define an attribute group used in complex type definitions.
choice Allow only one element to appear within the containing element in the <choice> declaration.
complexContent Define extensions or restrictions on complex types (including mixed content or elements only).
complexType Define a complex type.
documentation Define text annotations in the schema.
element Define an element.
extension Extend existing simpleType or complexType elements.
field Specify an XPath expression that defines the value used to define identification constraints.
group Define a group of elements used in complex type definitions.
import Add multiple schemas with different target namespaces to a document.
include Add multiple schemas with the same target namespace to a document.
key Specify that an attribute or element value (or a set of values) must be within a specified range of keys.
keyref Specify that the value of an attribute or element (or a set of values) corresponds to the value of a specified key or unique element.
list Define a simple type as a list of values of a specified data type.
notation Describe the format of non-XML data in an XML document.
redefine Redefine simple and complex types, groups, and attribute groups obtained from external schema files.
restriction Define constraints on simpleType, simpleContent, or complexContent.
schema Define the root element of the schema.
selector Specifies an XPath expression that selects a set of elements for identification constraints.
sequence Requires child elements to appear in order. Each child element can appear 0 to any number of times.
simpleContent Contains extensions or restrictions of complexType elements and does not contain any elements.
simpleType Define a simple type, specify constraints, and provide information about the value of attributes or elements that contain only text.
union 定义多个 simpleType 定义的集合。
unique Definir la colección de múltiples definiciones simpleType.

unique

Restricciones/Facets de XSD para tipos de datos

ver XSD limitación / Facets limitación
descripción Definir una lista de valores aceptables.
fractionDigits Definir el número máximo permitido de dígitos decimales. Debe ser mayor o igual a 0.
length Definir el número exacto permitido de caracteres o elementos de lista. Debe ser mayor o igual a 0.
maxExclusive Definir el límite superior de un número. Los valores permitidos deben ser menores que este valor.
maxInclusive Definir el límite superior de un número. Los valores permitidos deben ser menores o iguales a este valor.
maxLength Definir el número máximo permitido de caracteres o elementos de lista. Debe ser mayor o igual a 0.
minExclusive Definir el límite inferior de un número. Los valores permitidos deben ser mayores que este valor.
minInclusive Definir el límite inferior de un número. Los valores permitidos deben ser mayores o iguales a este valor.
minLength Definir el número mínimo permitido de caracteres o elementos de lista. Debe ser mayor o igual a 0.
pattern Definir la secuencia exacta de caracteres aceptables.
totalDigits Definir la precisión de dígitos enteros permitidos. Debe ser mayor que 0.
whiteSpace Definir el tratamiento de los caracteres de espacio en blanco (salto de línea, retorno de carro, espacio y tabulador).