data tree FEATURE children iterator
diff --git a/src/tree_data.h b/src/tree_data.h
index 24ab7e7..a51eae7 100644
--- a/src/tree_data.h
+++ b/src/tree_data.h
@@ -41,6 +41,17 @@
  */
 
 /**
+ * @brief Macro to iterate over all children of a node.
+ *
+ * Use with opening curly bracket '{' after the macro.
+ *
+ * @param[in] INNER Node whose children to iterate over.
+ * @param[in] CHILD Child iterator to use.
+ */
+#define LYD_CHILD_FOR(INNER, CHILD) \
+    for ((CHILD) = lyd_node_children((struct lyd_node *)(INNER), 0); (CHILD); (CHILD) = (CHILD)->next)
+
+/**
  * @brief Macro to iterate via all elements in a data tree. This is the opening part
  * to the #LYD_TREE_DFS_END - they always have to be used together.
  *