Function mupdf_sys::fz_dom_find

source ·
pub unsafe extern "C" fn fz_dom_find(
    ctx: *mut fz_context,
    elt: *mut fz_xml,
    tag: *const c_char,
    att: *const c_char,
    match_: *const c_char
) -> *mut fz_xml
Expand description

Find the first element matching the requirements in a depth first traversal from elt.

The tagname must match tag, unless tag is NULL, when all tag names are considered to match.

If att is NULL, then all tags match. Otherwise: If match is NULL, then only nodes that have an att attribute match. If match is non-NULL, then only nodes that have an att attribute that matches match match.

Returns NULL (if no match found), or a borrowed reference to the first matching element.