From 6831c770c384831798cb1c6dc4674e5d4caa5e3c Mon Sep 17 00:00:00 2001 From: xuri Date: Sun, 12 Feb 2023 17:26:57 +0800 Subject: [PATCH] encoding/xml: overriding by empty namespace when no new name --- src/encoding/xml/xml_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/encoding/xml/xml_test.go b/src/encoding/xml/xml_test.go index e95e1e1938cce0..c6754a85286626 100644 --- a/src/encoding/xml/xml_test.go +++ b/src/encoding/xml/xml_test.go @@ -1065,7 +1065,7 @@ func TestIssue7113(t *testing.T) { } type D struct { - XMLName Name `xml:"D"` + XMLName Name `xml:"d"` } type A struct { @@ -1076,7 +1076,7 @@ func TestIssue7113(t *testing.T) { var a A structSpace := "b" - xmlTest := `` + xmlTest := `` t.Log(xmlTest) err := Unmarshal([]byte(xmlTest), &a) if err != nil {