axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
axlNode * axl_node_get_next ( axlNode node)

Allows to get the node that is located, at the same level, on the next position on the child list.

When a parent node holds more node childs, all of them have the same parent child, and at the same time, all of them have a brother relation. This relation makes that two nodes that are childs for a parent node, are positioned sequentially as childs for the parent.

This function allows to get the next child that is stored at the next position, inside the same level, for the given child node.

There are an alternative API that allows to get the next node, following to the node selected, but providing the name to match. See axl_node_get_next_called.

nodeThe node to get the next xml node reference.
Returns an internal reference to the next xml node or NULL if fails. The function will also return NULL if no next xml node is found starting from the provided reference. The root node will always returns a NULL reference.

References axl_item_get_next(), axl_item_get_type(), AXL_LEVEL_DEBUG, axl_node_get_name(), axl_return_val_if_fail, and ITEM_NODE.

Referenced by axl_node_find_called(), axl_node_get_next_called(), axl_ns_node_find_called(), axl_ns_node_get_child_called(), and axl_ns_node_get_next_called().