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.
1 parent f1b9349 commit 5178aa8Copy full SHA for 5178aa8
src/modelspec/utils.py
@@ -259,7 +259,7 @@ def build_xml_element(data, parent=None):
259
parent.append(child_element)
260
261
# Filters name space and schemaLoacation attributes, only allows non name space attributes to be added as attributes
262
- elif aattr.name not in ["xmlns", "xmlns_url", "xmlns_loc", "xmln_loc_2"]:
+ elif not isinstance(aattr.default, str):
263
attribute_name = aattr.name
264
attribute_value = data.__getattribute__(aattr.name)
265
parent.set(attribute_name, str(attribute_value))
0 commit comments