From de9070dba1ca56c15e70280002fd51ecd358dd57 Mon Sep 17 00:00:00 2001 From: mfranz Date: Wed, 10 Oct 2007 12:45:53 +0000 Subject: [PATCH] better standard compliance: allow empty top level tags () --- simgear/props/props_io.cxx | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5