Skip to main content

validate_id

Function validate_id 

Source
pub unsafe fn validate_id(
    ctxt: *mut _xmlValidCtxt,
    doc: *mut _xmlDoc,
    node: *mut _xmlNode,
    value: *const xmlChar,
) -> c_int
Expand description

Validate an ID value: check that the value is a valid XML Name and that no duplicate ID values exist in the document.

§UPSTREAM-PARITY

int xmlValidateID(xmlValidCtxtPtr ctxt,
                  xmlDocPtr doc,
                  xmlNodePtr node,
                  const xmlChar *value);

Returns 1 if the ID is valid, 0 otherwise.

§SAFETY

  • ctxt, doc, node, value may be NULL.