Skip to main content

tx_next_sibling_element

Function tx_next_sibling_element 

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

Returns the next sibling element, optionally filtered by tag name.

If name is null, returns the next sibling element regardless of its name.

ยงSafety

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