Allows to perform a iteration operation but configuring where to start, discarding the rest content.
See axl_doc_iterate and axl_doc_iterate_full for more details. This function works the same like previous but, unlike previous, this function doesn't use the default starting point: the root node (axl_doc_get_root). The function allows to configure the node where to start the iteration operation.
This function is equivalent to axl_doc_iterate_full calling if it use the root node document as value for starting_from.
- Parameters:
-
| doc | The xml document that will be iterated. |
| starting_from | The axlNode where the operation will start, discarding all content from ascending nodes, previous siblings and following sibligins. From a iteration perspective, the iteration opeeration. |
| mode | The iterarion type to be performed. |
| func | The function to be called for each node found. |
| ptr | An user defined pointer that will be passed to the callback function. |
| ptr2 | Second user defined pointer that will be passed to the callback function. |
- Returns:
- The function returns true if the iteration was performed over all nodes or false it it was stoped by the iteration function (by returning false to stop the iteration). The function also false if the parameters provided doc or func are not defined.