diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-03-07 22:56:37 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-03-07 22:56:37 +0000 |
| commit | efedb4df9c18ff68630ecb6fa9c012b459207e7d (patch) | |
| tree | 09c582ad68ee5b8619dc300d4b97ed880cf7f9e9 /parser | |
| parent | 1cbd7960fb7eba621f439ece463d82f7ee179f68 (diff) | |
Be more lenient with errors in xml file. If there are errors, try to keep loading it anyways.
Diffstat (limited to 'parser')
| -rw-r--r-- | parser/parse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/parser/parse.c b/parser/parse.c index 9db02fb0..b288d016 100644 --- a/parser/parse.c +++ b/parser/parse.c @@ -152,7 +152,8 @@ gboolean parse_load(const gchar *path, const gchar *rootname, /* XML_PARSE_BLANKS is needed apparently. When it loads a theme file, without this option, the tree is weird and has extra nodes in it. */ - if ((*doc = xmlReadFile(path, NULL, XML_PARSE_NOBLANKS))) { + if ((*doc = xmlReadFile(path, NULL, + XML_PARSE_NOBLANKS | XML_PARSE_RECOVER))) { *root = xmlDocGetRootElement(*doc); if (!*root) { xmlFreeDoc(*doc); |
