Skip to content

Commit

Permalink
encoding/xml: overriding by empty namespace when no new name
Browse files Browse the repository at this point in the history
  • Loading branch information
xuri authored Feb 12, 2023
1 parent 7e678c7 commit 6831c77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/encoding/xml/xml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ func TestIssue7113(t *testing.T) {
}

type D struct {
XMLName Name `xml:"D"`
XMLName Name `xml:"d"`
}

type A struct {
Expand All @@ -1076,7 +1076,7 @@ func TestIssue7113(t *testing.T) {

var a A
structSpace := "b"
xmlTest := `<A xmlns="` + structSpace + `"><C xmlns=""></C><D></D></A>`
xmlTest := `<A xmlns="` + structSpace + `"><C xmlns=""></C><d></d></A>`
t.Log(xmlTest)
err := Unmarshal([]byte(xmlTest), &a)
if err != nil {
Expand Down

0 comments on commit 6831c77

Please sign in to comment.