pub unsafe fn validate_enumeration(
ctxt: *mut _xmlValidCtxt,
value: *const xmlChar,
tree: *mut _xmlEnumeration,
) -> c_intExpand description
Validate that value is one of the values in the enumeration.
§UPSTREAM-PARITY
int xmlValidateEnumeration(xmlValidCtxtPtr ctxt,
const xmlChar *value,
xmlEnumerationPtr tree);Returns 1 if the value is in the enumeration, 0 otherwise.
§SAFETY
ctxtmay be NULL.valuemust be a valid null-terminated string or NULL.treemay be NULL (returns 0).