Skip to content

Commit 3c46816

Browse files
committed
Fix the parser to take into account both the xs and xsd namespace prefixes
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent 12ec4a7 commit 3c46816

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/saml2/saml.py

+6
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ def set_type(self, typ):
145145
except AttributeError:
146146
self._extatt['xmlns:xs'] = XS_NAMESPACE
147147

148+
if typ.startswith('xsd:'):
149+
try:
150+
self.extension_attributes['xmlns:xsd'] = XS_NAMESPACE
151+
except AttributeError:
152+
self._extatt['xmlns:xsd'] = XS_NAMESPACE
153+
148154
def get_type(self):
149155
try:
150156
return self.extension_attributes[XSI_TYPE]

0 commit comments

Comments
 (0)