X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=obt%2Fxml.c;h=c872912926405959ecd85063b9feb317e225af4d;hb=be9637e40317eb36e5a5357d3f58e3af21c81df4;hp=69810d77ee9374a1b3c46b20aa3ff038f84d70df;hpb=4f8503c2c5aa4210c923269626b67c5919326c46;p=chaz%2Fopenbox diff --git a/obt/xml.c b/obt/xml.c index 69810d77..c8729129 100644 --- a/obt/xml.c +++ b/obt/xml.c @@ -19,6 +19,7 @@ #include "obt/xml.h" #include "obt/paths.h" +#include #include #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) {