Skip to main content

xmlTextReaderClose

Function xmlTextReaderClose 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn xmlTextReaderClose( reader: *mut XmlTextReader, ) -> c_int
Expand description

Close the reader, releasing the document and parser state.

§UPSTREAM-PARITY

Upstream xmlTextReaderClose (xmlreader.c): sets the mode to XML_TEXTREADER_MODE_CLOSED, drops the current node, and tears down the validation state. The reader object itself is freed separately with xmlFreeTextReader.

int xmlTextReaderClose(xmlTextReaderPtr reader);

Returns 0 on success, -1 if reader is NULL.

§Safety

reader must be a valid pointer or NULL.