diff options
| author | Dana Jansens <danakj@orodu.net> | 2010-10-16 15:32:35 -0400 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2011-01-24 14:19:23 -0500 |
| commit | 80b6d4ac5d6a039a8e3976a52490200ed803566e (patch) | |
| tree | d5ac31946d38ac311de3669cd4cc125d37ba2aef /obt | |
| parent | c5c34cca1c9b57424fa7ca686995126f627903ab (diff) | |
XML_PARSE_XINCLUDE flag seems to do nothing. Use xmlXIncludeProcessFlags() instead
Diffstat (limited to 'obt')
| -rw-r--r-- | obt/xml.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -19,6 +19,7 @@ #include "obt/xml.h" #include "obt/paths.h" +#include <libxml/xinclude.h> #include <glib.h> #ifdef HAVE_STDLIB_H @@ -135,8 +136,9 @@ static gboolean load_file(ObtXmlInst *i, /* XML_PARSE_BLANKS is needed apparently, or the tree can end up with extra nodes in it. */ i->doc = xmlReadFile(path, NULL, (XML_PARSE_NOBLANKS | - XML_PARSE_RECOVER | - XML_PARSE_XINCLUDE)); + XML_PARSE_RECOVER)); + xmlXIncludeProcessFlags(i->doc, (XML_PARSE_NOBLANKS | + XML_PARSE_RECOVER)); if (i->doc) { i->root = xmlDocGetRootElement(i->doc); if (!i->root) { |
