pub unsafe fn valid_content_model(
model: *mut _xmlElementContent,
names: &[*const xmlChar],
) -> ContentModelResultExpand description
Validate content (a list of element names) against a content model, taking occurrence indicators into account.
§UPSTREAM-PARITY
int xmlValidContentModel(xmlElementContentPtr model, ...)This implements a simple recursive descent validator for content models. For simple content models (EMPTY, ANY, PCDATA), the check is direct. For sequence/choice models, it recursively validates.
Returns ContentModelResult::Valid if the content matches the model,
ContentModelResult::Invalid otherwise.
§SAFETY
modelmust be a valid pointer to an _xmlElementContent, or NULL.namesmust be a slice of element names (null-terminated xmlChar strings).