This huge document about XML Schema does not explain what cvc means:
http://www.w3.org/TR/2007/WD-xmlschema11-1-20070830/#validation_failures
It is obvious that is something like a error code. But would it be acronym for something that is not there (code value constraint???).
cvc-complex-type. 2.4. a: Invalid content was found starting with element 'object_id'. One of '{object_id, description, level}' is expected.
XML validation is a process done to check for a syntax error in an XML document to ensure that the document is well-written with the standard rules using either DTD or schema. A complete XML file is considered to be valid XML document unless it has correct syntax and constraints defined in it.
XML Schema Definition or XSD is a recommendation by the World Wide Web Consortium (W3C) to describe and validate the structure and content of an XML document. It is primarily used to define the elements, attributes and data types the document can contain.
Eh, CVC stands for "Validation Rule"!
Okay, that doesn't make a lot of sense, and I imagine it started out as something more reasonable like "Content Validation Constraint" back in the days before the first working draft.
The main thing is that:
cvc-
, uniqueness is aided by avoiding a clash between the name and one for another rule.cvc-
and only validation rules start with cvc-
. Similarly, all schema representation constraints start with src-
except schema-reference
.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With