pub enum SchemaErrorKind {
Show 17 variants
UnknownRoot,
UnexpectedElement,
MissingElement,
TextNotAllowed,
ElementInSimpleContent,
ContentNotEmpty,
UndeclaredElement,
UndeclaredAttribute,
AttributeNotAllowed,
MissingAttribute,
InvalidValue,
InvalidAttributeValue,
DuplicateId,
InvalidXsiType,
AbstractType,
NotNillable,
InvalidXsiNil,
}Expand description
The kind of a ValidationError. The set and the names of ErrorKind::as_str
are stable.
Variants§
UnknownRoot
The document element has no global element declaration (cvc-elt.1).
UnexpectedElement
A child element is not allowed here by the content model (cvc-complex-type.2.4).
MissingElement
The content model needs more child elements (cvc-complex-type.2.4).
TextNotAllowed
Non-whitespace text in element-only content (cvc-complex-type.2.3).
ElementInSimpleContent
A child element where the type has simple content (cvc-complex-type.2.2, cvc-type.3.1.2).
ContentNotEmpty
Text (even whitespace) or a child element where the content type is empty (cvc-complex-type.2.1).
UndeclaredElement
An element matched by a strict wildcard has no global declaration (cvc-wildcard, cvc-assess-elt).
UndeclaredAttribute
An attribute matched by a strict attribute wildcard has no global declaration (cvc-complex-type.3.2.2).
AttributeNotAllowed
An attribute the type does not allow (cvc-complex-type.3.2).
MissingAttribute
A required attribute is absent (cvc-complex-type.4).
InvalidValue
The text of an element is not a valid value of its simple type (cvc-type.3.1.3, cvc-complex-type.2.2).
InvalidAttributeValue
An attribute value is not valid for its type (cvc-attribute.3).
DuplicateId
An xs:ID value already used by an earlier attribute of the document (cvc-id.2).
InvalidXsiType
xsi:type is not a QName, does not resolve to a type, or names a type not
validly derived from the declared type (cvc-elt.4).
AbstractType
The type of the element is abstract (cvc-elt.2, cvc-type.2).
NotNillable
xsi:nil on an element whose declaration is not nillable (cvc-elt.3.1).
InvalidXsiNil
xsi:nil with a value that is not a boolean (cvc-elt.3).