libdom
Loading...
Searching...
No Matches
Functions
walk.c File Reference
#include <dom/dom.h>
#include <dom/walk.h>

Functions

dom_exception libdom_treewalk (enum dom_walk_enable mask, dom_walk_cb cb, dom_node *root, void *pw)
 

Detailed Description

This is an API for walking a loaded DOM.

Function Documentation

◆ libdom_treewalk()

dom_exception libdom_treewalk ( enum dom_walk_enable mask,
dom_walk_cb cb,
dom_node * root,
void * pw )

Walk a DOM subtree.

Parameters
[in]maskMask of stages to enable callback for.
[in]cbThe client callback function.
[in]rootNode to start walk from.
[in]pwThe client's private data.
Returns
false for early termination of walk, true otherwise.