Skip to main content

validate_name_space

Function validate_name_space 

Source
pub unsafe fn validate_name_space(value: *const xmlChar, space: c_int) -> c_int
Expand description

Modern 2-arg form, upstream tree.c xmlValidateName(value, space).

NOTE: this is the CURRENT oracle ABI — since libxml2 2.12 the symbol carries a second int space parameter (tree.c) and inverted return semantics (0 valid / 1 invalid / -1 NULL). The pre-2.12 1-arg form is gone from the DSO; the 1-arg semantics live on as xmlValidateNameValue.

§SAFETY

  • value must be a valid null-terminated string or NULL.