Skip to main content

validate_attribute_value

Function validate_attribute_value 

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

Validate an attribute value against its declared type.

§UPSTREAM-PARITY

int xmlValidateAttributeValue(int type, const xmlChar *value);

Returns 1 if the value is valid for the given attribute type, 0 otherwise.

§SAFETY

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