From 43e356377cf27d6596be5ea873e04101e4eeac78 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 11 Jan 2009 14:49:47 +0000 Subject: I guess it helps if you document the fact that _both_ a tree handler and a document node are needed to make treebuilding work. svn path=/trunk/hubbub/; revision=6038 --- examples/libxml.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples') 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; -- cgit v1.2.3