pub fn validate_element_structure(
attrs: &AttributeMap,
name_table: &NameTable,
ctx: &ValidationContext,
) -> SchemaResult<()>Expand description
Validate element declaration structural constraints
Top-level elements:
- Must have
nameattribute - Must NOT have
ref,minOccurs,maxOccurs, orformattributes
Local elements:
- Must have exactly one of
nameORref - If
refis present, type/default/fixed/nillable/block/final are prohibited