[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [5013] Distinguish unrecognized from duplicate elements
From: |
Greg Chicares |
Subject: |
[lmi-commits] [5013] Distinguish unrecognized from duplicate elements |
Date: |
Thu, 24 Jun 2010 02:43:15 +0000 |
Revision: 5013
http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=5013
Author: chicares
Date: 2010-06-24 02:43:13 +0000 (Thu, 24 Jun 2010)
Log Message:
-----------
Distinguish unrecognized from duplicate elements
Modified Paths:
--------------
lmi/trunk/xml_serializable.tpp
Modified: lmi/trunk/xml_serializable.tpp
===================================================================
--- lmi/trunk/xml_serializable.tpp 2010-06-23 01:58:45 UTC (rev 5012)
+++ lmi/trunk/xml_serializable.tpp 2010-06-24 02:43:13 UTC (rev 5013)
@@ -148,12 +148,14 @@
}
else
{
- oss << " '" << node_tag << "'\n";
+ bool b = contains(t().member_names(), node_tag);
+ std::string s = b ? "[duplicate]" : "[unrecognized]";
+ oss << " '" << node_tag << "' " << s << "\n";
}
}
if(!oss.str().empty())
{
- warning() << "Unrecognized XML tags:\n" << oss.str() << LMI_FLUSH;
+ warning() << "Discarded XML elements:\n" << oss.str() << LMI_FLUSH;
}
redintegrate_ex_post(file_version, detritus_map, residuary_names);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [5013] Distinguish unrecognized from duplicate elements,
Greg Chicares <=