projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cbd796
)
Be more lenient with errors in xml file. If there are errors, try to keep loading...
author
Dana Jansens
<danakj@orodu.net>
Wed, 7 Mar 2007 22:56:37 +0000
(22:56 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Wed, 7 Mar 2007 22:56:37 +0000
(22:56 +0000)
parser/parse.c
patch
|
blob
|
history
diff --git
a/parser/parse.c
b/parser/parse.c
index 9db02fb067adf3139a1f1722faa54473e098452e..b288d016bfd744adee034370eea9ee07fa6d9e25 100644
(file)
--- 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);