Skip to main content

xmlTextWriterWriteString

Function xmlTextWriterWriteString 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn xmlTextWriterWriteString( writer: *mut XmlTextWriter, content: *const xmlChar, ) -> c_int
Expand description

Write text content.

§UPSTREAM-PARITY

int xmlTextWriterWriteString(xmlTextWriterPtr writer, const xmlChar *content);

NAME/TEXT states escape via xmlEncodeSpecialChars (quotes included); ATTRIBUTE escapes via xmlBufAttrSerializeTxtContent (qchar-aware); all other states (CDATA/comment/PI/DTD*) write raw through WriteRaw, which performs the DTD state transitions.

§SAFETY

  • writer must be a valid pointer to an XmlTextWriter or NULL.
  • content must be a valid null-terminated xmlChar string or NULL.