diff options
Diffstat (limited to 'obt')
| -rw-r--r-- | obt/parse.c | 5 | ||||
| -rw-r--r-- | obt/parse.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/obt/parse.c b/obt/parse.c index 61fe5b82..741b19e1 100644 --- a/obt/parse.c +++ b/obt/parse.c @@ -304,6 +304,11 @@ void obt_parse_tree(ObtParseInst *i, xmlNodePtr node) } } +void obt_parse_tree_from_root(ObtParseInst *i) +{ + obt_parse_tree(i, i->root->children); +} + gchar *obt_parse_node_string(xmlNodePtr node) { xmlChar *c = xmlNodeGetContent(node); diff --git a/obt/parse.h b/obt/parse.h index 3a541a0d..cba7c495 100644 --- a/obt/parse.h +++ b/obt/parse.h @@ -61,6 +61,7 @@ void obt_parse_close(ObtParseInst *inst); void obt_parse_register(ObtParseInst *inst, const gchar *tag, ObtParseCallback func, gpointer data); void obt_parse_tree(ObtParseInst *i, xmlNodePtr node); +void obt_parse_tree_from_root(ObtParseInst *i); /* helpers */ |
