Skip to main content

tx_new_element

Function tx_new_element 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn tx_new_element( doc: *mut TxDocument, name: *const c_char, ) -> TxNodeId
Expand description

Creates a new element node with the given tag name.

ยงSafety

  • doc must be a valid, non-null pointer to a TxDocument.
  • name must be a valid, non-null pointer to a null-terminated UTF-8 string.