Skip to main content

xmlSaveTree

Function xmlSaveTree 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn xmlSaveTree( ctxt: *mut _xmlSaveCtxt, node: *mut _xmlNode, ) -> c_long
Expand description

Serialize a node tree into the save context’s output buffer.

Returns the number of bytes written, or -1 on error.

§SAFETY

  • ctxt must be a valid save context.
  • node must be a valid node or NULL.