Skip to main content

add_ref

Function add_ref 

Source
pub unsafe fn add_ref(
    ctxt: *mut _xmlValidCtxt,
    doc: *mut _xmlDoc,
    value: *const xmlChar,
    attr: *mut _xmlAttr,
) -> *mut _xmlRef
Expand description

Upstream xmlAddRef(ctxt, doc, value, attr) โ€” registers an IDREF. Returns the xmlRef or NULL.

ยงSAFETY

  • ctxt may be NULL; doc/attr/value must be valid pointers.