Function yrs::yxml_next_sibling

source ยท
#[no_mangle]
pub unsafe extern "C" fn yxml_next_sibling(
    xml: *const Branch,
    txn: *const Transaction
) -> *mut YOutput
Expand description

Returns a next sibling of a current XML node, which can be either another YXmlElement or a YXmlText. Together with yxmlelem_first_child it may be used to iterate over the direct children of an XML node (in order to iterate over the nested XML structure use yxmlelem_tree_walker).

If current YXmlElement is the last child, this function returns a null pointer. A returned value should be eventually released using youtput_destroy function.