]> git.sur5r.net Git - glabels/commitdiff
Allow comments anytime traversing a list of child nodes.
authorJim Evins <evins@snaught.com>
Fri, 17 Oct 2003 03:18:13 +0000 (03:18 +0000)
committerJim Evins <evins@snaught.com>
Fri, 17 Oct 2003 03:18:13 +0000 (03:18 +0000)
git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@316 f5e0f49d-192f-0410-a22d-a8d8700d0965

glabels2/src/xml-template.c

index 1233da2042bee558b3de553d580df71eddb77c6b..6ef101e4e04eb61fd9b700477fc155a8c04d042f 100644 (file)
@@ -201,7 +201,9 @@ gl_xml_template_parse_template (xmlNodePtr template_node)
                        xml_parse_alias (node, template);
                } else {
                        if (!xmlNodeIsText (node)) {
-                               g_warning ("bad node =  \"%s\"", node->name);
+                               if (!xmlStrEqual (node->name,"comment")) {
+                                       g_warning ("bad node =  \"%s\"",node->name);
+                               }
                        }
                }
        }
@@ -241,7 +243,9 @@ xml_parse_label_rectangle (xmlNodePtr  label_node,
                } else if (xmlStrEqual (node->name, "Markup-circle")) {
                        xml_parse_markup_circle (node, template);
                } else if (!xmlNodeIsText (node)) {
-                       g_warning ("bad node =  \"%s\"", node->name);
+                       if (!xmlStrEqual (node->name,"comment")) {
+                               g_warning ("bad node =  \"%s\"",node->name);
+                       }
                }
        }
 
@@ -274,7 +278,9 @@ xml_parse_label_round (xmlNodePtr  label_node,
                } else if (xmlStrEqual (node->name, "Markup-line")) {
                        xml_parse_markup_line (node, template);
                } else if (!xmlNodeIsText (node)) {
-                       g_warning ("bad node =  \"%s\"", node->name);
+                       if (!xmlStrEqual (node->name,"comment")) {
+                               g_warning ("bad node =  \"%s\"",node->name);
+                       }
                }
        }
 
@@ -310,7 +316,9 @@ xml_parse_label_cd (xmlNodePtr  label_node,
                } else if (xmlStrEqual (node->name, "Markup-line")) {
                        xml_parse_markup_line (node, template);
                } else if (!xmlNodeIsText (node)) {
-                       g_warning ("bad node =  \"%s\"", node->name);
+                       if (!xmlStrEqual (node->name,"comment")) {
+                               g_warning ("bad node =  \"%s\"",node->name);
+                       }
                }
        }
 
@@ -342,7 +350,9 @@ xml_parse_layout (xmlNodePtr  layout_node,
        for (node = layout_node->xmlChildrenNode; node != NULL;
             node = node->next) {
                if (!xmlNodeIsText (node)) {
-                       g_warning ("bad node =  \"%s\"", node->name);
+                       if (!xmlStrEqual (node->name,"comment")) {
+                               g_warning ("bad node =  \"%s\"",node->name);
+                       }
                }
        }
 
@@ -374,7 +384,9 @@ xml_parse_markup_margin (xmlNodePtr  markup_node,
        for (node = markup_node->xmlChildrenNode; node != NULL;
             node = node->next) {
                if (!xmlNodeIsText (node)) {
-                       g_warning ("bad node =  \"%s\"", node->name);
+                       if (!xmlStrEqual (node->name,"comment")) {
+                               g_warning ("bad node =  \"%s\"",node->name);
+                       }
                }
        }
 
@@ -405,7 +417,9 @@ xml_parse_markup_line (xmlNodePtr  markup_node,
        for (node = markup_node->xmlChildrenNode; node != NULL;
             node = node->next) {
                if (!xmlNodeIsText (node)) {
-                       g_warning ("bad node =  \"%s\"", node->name);
+                       if (!xmlStrEqual (node->name,"comment")) {
+                               g_warning ("bad node =  \"%s\"",node->name);
+                       }
                }
        }
 
@@ -435,7 +449,9 @@ xml_parse_markup_circle (xmlNodePtr  markup_node,
        for (node = markup_node->xmlChildrenNode; node != NULL;
             node = node->next) {
                if (!xmlNodeIsText (node)) {
-                       g_warning ("bad node =  \"%s\"", node->name);
+                       if (!xmlStrEqual (node->name,"comment")) {
+                               g_warning ("bad node =  \"%s\"",node->name);
+                       }
                }
        }