Skip to main content

validate_id_ref

Function validate_id_ref 

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

Validate an IDREF value: check that the referenced ID exists in the document.

§UPSTREAM-PARITY

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

Returns 1 if the IDREF is valid (references a known ID), 0 otherwise.

§SAFETY

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