From ebf1091cf1aeb224c3dee24616551cd11a5392ee Mon Sep 17 00:00:00 2001 From: Jasper Hugo Date: Mon, 11 Oct 2021 13:31:41 +0700 Subject: [PATCH] Handle identical namespaces of sibling elements correctly Fixes #48 --- minidom/src/element.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minidom/src/element.rs b/minidom/src/element.rs index c72328d0..4eb98864 100644 --- a/minidom/src/element.rs +++ b/minidom/src/element.rs @@ -545,7 +545,7 @@ impl Element { writer.write_event(Event::Start(start))?; for child in &self.children { - child.write_to_inner(writer, all_prefixes)?; + child.write_to_inner(writer, &mut all_prefixes.clone())?; } writer.write_event(Event::End(BytesEnd::borrowed(name.as_bytes())))?;