From: mfranz Date: Wed, 10 Oct 2007 12:45:53 +0000 (+0000) Subject: better standard compliance: allow empty top level tags () X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=de9070dba1ca56c15e70280002fd51ecd358dd57;p=simgear.git better standard compliance: allow empty top level tags () --- diff --git a/simgear/props/props_io.cxx b/simgear/props/props_io.cxx index b89f1d46..187f5660 100644 --- a/simgear/props/props_io.cxx +++ b/simgear/props/props_io.cxx @@ -279,6 +279,8 @@ PropsVisitor::endElement (const char * name) ret = st.node->setStringValue(_data.c_str()); } else if (st.type == "unspecified") { ret = st.node->setUnspecifiedValue(_data.c_str()); + } else if (_level == 1) { + ret = true; // empty } else { string message = "Unrecognized data type '"; message += st.type;