Skip to content

Commit b790352

Browse files
added new line in place of name space to the xml:schmaLocation attribute setter
1 parent 99b30ba commit b790352

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/modelspec/utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ def load_xml(filename: str):
9292
removed_id = handle_xml_dict_id(data)
9393

9494
# Values are returned as strings after conversion, this corrects them to their actual values
95-
# converted_to_actual_val = convert_xml_dict_values(removed_id)
96-
9795
return convert_xml_dict_values(removed_id)
9896

9997

@@ -272,7 +270,7 @@ def build_xml_element(data, parent=None):
272270
if hasattr(data, "xmlns_url"):
273271
parent.set("xmlns:xsi", data.xmlns_url)
274272
if hasattr(data, "xmlns_loc"):
275-
parent.set("xsi:schemaLocation", str(data.xmlns_loc + " " + data.xmln_loc_2))
273+
parent.set("xsi:schemaLocation", str(data.xmlns_loc + "\n" + data.xmln_loc_2))
276274
return parent
277275

278276

0 commit comments

Comments
 (0)