mirror of
https://github.com/mbilker/kbinxml-rs.git
synced 2026-09-07 01:55:13 -05:00
kbinxml: support empty root node
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user