better standard compliance: allow empty top level tags (<PropertyList>)

This commit is contained in:
mfranz 2007-10-10 12:45:53 +00:00
parent 813b518b6f
commit de9070dba1

View File

@ -279,6 +279,8 @@ PropsVisitor::endElement (const char * name)
ret = st.node->setStringValue(_data.c_str()); ret = st.node->setStringValue(_data.c_str());
} else if (st.type == "unspecified") { } else if (st.type == "unspecified") {
ret = st.node->setUnspecifiedValue(_data.c_str()); ret = st.node->setUnspecifiedValue(_data.c_str());
} else if (_level == 1) {
ret = true; // empty <PropertyList>
} else { } else {
string message = "Unrecognized data type '"; string message = "Unrecognized data type '";
message += st.type; message += st.type;