Skip to main content

xmlSaveFormatFileTo

Function xmlSaveFormatFileTo 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn xmlSaveFormatFileTo( buf: *mut _xmlOutputBuffer, cur: *mut _xmlDoc, encoding: *const c_char, format: c_int, ) -> c_int
Expand description

int xmlSaveFormatFileTo(xmlOutputBufferPtr buf, xmlDocPtr cur, const char *encoding, int format) โ€” serialize cur into an existing output buffer and close it (upstream xmlsave.c).

ยงSAFETY

  • buf must be a valid output buffer (closed by this call).
  • cur must be a valid document.