kbinxml: support empty root node

This commit is contained in:
Felix
2023-07-09 06:42:52 +00:00
parent 7f0e5d0152
commit 76ca9182ed

View File

@@ -298,6 +298,9 @@ impl<'a> TextXmlReader<'a> {
if let Some((ref mut parent_collection, _count, _size)) = self.stack.last_mut()
{
parent_collection.children_mut().push_back(collection);
} else {
// The end of the structure has been reached.
return Ok(Some(collection));
}
},
Event::Decl(e) => {