summaryrefslogtreecommitdiff
path: root/examples/libxml.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/libxml.c')
-rw-r--r--examples/libxml.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/libxml.c b/examples/libxml.c
index 1190479..bb57835 100644
--- a/examples/libxml.c
+++ b/examples/libxml.c
@@ -324,6 +324,10 @@ error_code create_context(const char *charset, context **ctx)
c->namespaces[i] = NULL;
}
+ /* The following are both needed to make hubbub do anything. If it has
+ * no tree handler or document node registered, it won't attempt to
+ * build a tree. */
+
/* Register tree handler with hubbub */
c->tree_handler = tree_handler;
c->tree_handler.ctx = (void *) c;