We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9105bd6 + 088a04a commit ed07dbaCopy full SHA for ed07dba
pydantic_xml/utils.py
@@ -81,7 +81,7 @@ def register_nsmap(nsmap: NsMap) -> None:
81
"""
82
83
for prefix, uri in nsmap.items():
84
- if prefix != '': # skip default namespace
+ if prefix != '' and not re.match(r"ns\d+$", prefix): # skip default namespace and reserved ones
85
etree.register_namespace(prefix, uri)
86
87
0 commit comments