From e1e5943a3e6b9e3daab352b7e002a2ae16758dbf Mon Sep 17 00:00:00 2001 From: "leon.zhao" <45530032+DevOpserzhao@users.noreply.github.com> Date: Wed, 13 Mar 2024 23:59:05 +0800 Subject: [PATCH] fix: fix the issue of adding xmlns="" when generating XML (#2799) * fix:solve the problem of adding xmlns="" when generating XML * fix:remove fmt.Println * Update saml_idp.go --------- Co-authored-by: zhaoxianfei Co-authored-by: Eric Luo --- object/saml_idp.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/object/saml_idp.go b/object/saml_idp.go index 999cb2de..3856e816 100644 --- a/object/saml_idp.go +++ b/object/saml_idp.go @@ -179,8 +179,8 @@ type IdpSSODescriptor struct { } type NameIDFormat struct { - XMLName xml.Name - Value string `xml:",innerxml"` + // XMLName xml.Name + Value string `xml:",innerxml"` } type SingleSignOnService struct { @@ -190,7 +190,7 @@ type SingleSignOnService struct { } type Attribute struct { - XMLName xml.Name + // XMLName xml.Name Name string `xml:"Name,attr"` NameFormat string `xml:"NameFormat,attr"` FriendlyName string `xml:"FriendlyName,attr"`