projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d6c45db
)
xml tags are case sensitive
author
Dana Jansens
<danakj@orodu.net>
Sun, 25 Mar 2007 15:39:56 +0000
(15:39 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 25 Mar 2007 15:39:56 +0000
(15:39 +0000)
parser/parse.c
patch
|
blob
|
history
diff --git
a/parser/parse.c
b/parser/parse.c
index
fb53f1c
..
33f8054
100644
(file)
--- a/
parser/parse.c
+++ b/
parser/parse.c
@@
-160,7
+160,7
@@
gboolean parse_load(const gchar *path, const gchar *rootname,
*doc = NULL;
g_warning("%s is an empty document", path);
} else {
*doc = NULL;
g_warning("%s is an empty document", path);
} else {
- if (xmlStrc
asec
mp((*root)->name, (const xmlChar*)rootname)) {
+ if (xmlStrcmp((*root)->name, (const xmlChar*)rootname)) {
xmlFreeDoc(*doc);
*doc = NULL;
g_warning("Document %s is of wrong type. root node is "
xmlFreeDoc(*doc);
*doc = NULL;
g_warning("Document %s is of wrong type. root node is "
@@
-183,7
+183,7
@@
gboolean parse_load_mem(gpointer data, guint len, const gchar *rootname,
*doc = NULL;
g_warning("Given memory is an empty document");
} else {
*doc = NULL;
g_warning("Given memory is an empty document");
} else {
- if (xmlStrc
asec
mp((*root)->name, (const xmlChar*)rootname)) {
+ if (xmlStrcmp((*root)->name, (const xmlChar*)rootname)) {
xmlFreeDoc(*doc);
*doc = NULL;
g_warning("Document in given memory is of wrong type. root "
xmlFreeDoc(*doc);
*doc = NULL;
g_warning("Document in given memory is of wrong type. root "
@@
-255,7
+255,7
@@
gboolean parse_contains(const gchar *val, xmlDocPtr doc, xmlNodePtr node)
xmlNodePtr parse_find_node(const gchar *tag, xmlNodePtr node)
{
while (node) {
xmlNodePtr parse_find_node(const gchar *tag, xmlNodePtr node)
{
while (node) {
- if (!xmlStrc
asec
mp(node->name, (const xmlChar*) tag))
+ if (!xmlStrcmp(node->name, (const xmlChar*) tag))
return node;
node = node->next;
}
return node;
node = node->next;
}