Function yrs::yxmlelem_next_sibling [−][src]
#[no_mangle]
pub unsafe extern "C" fn yxmlelem_next_sibling(
xml: *const XmlElement,
txn: *const Transaction
) -> *mut YOutput
Expand description
Returns a next sibling of a current YXmlElement
, 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.