[libgsf] xml: complain over duplicate nodes.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgsf] xml: complain over duplicate nodes.
- Date: Tue, 31 Mar 2015 23:40:57 +0000 (UTC)
commit 27af8fc806df5294229b0b76cb2fdf19888c2644
Author: Morten Welinder <terra gnome org>
Date: Tue Mar 31 19:41:01 2015 -0400
xml: complain over duplicate nodes.
gsf/gsf-libxml.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gsf/gsf-libxml.c b/gsf/gsf-libxml.c
index a17cd93..7e589bf 100644
--- a/gsf/gsf-libxml.c
+++ b/gsf/gsf-libxml.c
@@ -1205,6 +1205,9 @@ gsf_xml_in_doc_add_nodes (GsfXMLInDoc *doc,
e_node->id);
continue;
}
+
+ if (strcmp (e_node->parent_id, node->pub.parent_id) == 0)
+ g_warning ("Duplicate node %s (under %s)", e_node->id, e_node->parent_id);
} else {
if (e_node->has_content == GSF_XML_2ND) {
g_warning ("ID '%s' is declared 2nd, but is missing.",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]