Skip to main content

is_empty_element

Function is_empty_element 

Source
pub unsafe fn is_empty_element(doc: *mut _xmlDoc, name: *const xmlChar) -> c_int
Expand description

Check if an element is declared as EMPTY.

§UPSTREAM-PARITY

int xmlIsEmptyElement(xmlDocPtr doc, const xmlChar *name);

Returns 1 if the element is declared EMPTY, 0 otherwise.

§SAFETY

  • doc, name may be NULL.