Skip to main content

xmlTextWriterStartDocument

Function xmlTextWriterStartDocument 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn xmlTextWriterStartDocument( writer: *mut XmlTextWriter, version: *const c_char, encoding: *const c_char, standalone: *const c_char, ) -> c_int
Expand description

Start an XML document.

Writes the XML declaration <?xml version="..." encoding="..." standalone="..."?>.

§UPSTREAM-PARITY

int xmlTextWriterStartDocument(xmlTextWriterPtr writer,
                                const char *version,
                                const char *encoding,
                                const char *standalone);

§SAFETY

  • writer must be a valid pointer to an XmlTextWriter or NULL.
  • version, encoding, standalone must be valid null-terminated strings or NULL.