diff --git a/src/encoding/xml/xml_test.go b/src/encoding/xml/xml_test.go
index 3a5f0c685d3cc7..2fdbd51cc1b4eb 100644
--- a/src/encoding/xml/xml_test.go
+++ b/src/encoding/xml/xml_test.go
@@ -1756,9 +1756,11 @@ func testRoundTrip(t *testing.T, input string) {
func TestRoundTrip(t *testing.T) {
tests := map[string]string{
- "leading colon": `<::Test ::foo="bar"><:::Hello>`,
- "trailing colon": ``,
- "double colon": ``,
+ // Disabling these tests because the parser now treats malformed namespaces as an error.
+ // See https://github.com/golang/go/issues/43168.
+ // "leading colon": `<::Test ::foo="bar"><:::Hello>`,
+ // "trailing colon": ``,
+ // "double colon": ``,
"comments in directives": `--x --> > --x ]>`,
}
for name, input := range tests {