From 311d5e76a743f593104f7e8fdf9d6b282f884a07 Mon Sep 17 00:00:00 2001 From: bstrueb Date: Tue, 11 Aug 2020 16:23:22 +0200 Subject: [PATCH] Update metadata.go (#297) Renamed LocalizedName & LocalizedURI Lang attributes -> `xml:"http://www.w3.org/XML/1998/namespace lang,attr"` fixes #295 --- metadata.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metadata.go b/metadata.go index 1da9ee64..0f7dfe97 100644 --- a/metadata.go +++ b/metadata.go @@ -104,7 +104,7 @@ type Organization struct { // // See http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf §2.2.4 type LocalizedName struct { - Lang string `xml:"xml lang,attr"` + Lang string `xml:"http://www.w3.org/XML/1998/namespace lang,attr"` Value string `xml:",chardata"` } @@ -112,7 +112,7 @@ type LocalizedName struct { // // See http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf §2.2.5 type LocalizedURI struct { - Lang string `xml:"xml lang,attr"` + Lang string `xml:"http://www.w3.org/XML/1998/namespace lang,attr"` Value string `xml:",chardata"` }