]> git.mxchange.org Git - simgear.git/commitdiff
better standard compliance: allow empty top level tags (<PropertyList>)
authormfranz <mfranz>
Wed, 10 Oct 2007 12:45:53 +0000 (12:45 +0000)
committermfranz <mfranz>
Wed, 10 Oct 2007 12:45:53 +0000 (12:45 +0000)
simgear/props/props_io.cxx

index b89f1d469d3bca67944b474315a0e622ddc29b2f..187f566060fb2f18fae8740a7f8abebcb8325952 100644 (file)
@@ -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 <PropertyList>
     } else {
       string message = "Unrecognized data type '";
       message += st.type;