Core: In XMLReader::readNextElement() support structure <element>data</element>

This commit is contained in:
wmayer
2023-10-09 12:29:32 +02:00
committed by wwmayer
parent ce3e6b9b24
commit a2c2e4fb16

View File

@@ -229,6 +229,8 @@ bool Base::XMLReader::readNextElement()
ok = read();
if (!ok)
break;
if (ReadType == StartElement)
break;
if (ReadType == StartEndElement)
break;
if (ReadType == EndElement)
@@ -237,7 +239,8 @@ bool Base::XMLReader::readNextElement()
break;
};
return (ReadType == StartEndElement);
return (ReadType == StartElement ||
ReadType == StartEndElement);
}
int Base::XMLReader::level() const {