Currently, object_to_xml_element() calls lang_string_set_to_xml() without setting the tag parameter.
|
elif isinstance(obj, model.LangStringSet): |
|
serialization_func = lang_string_set_to_xml |
Unlike the other ..._to_xml() methods, it is not possible for lang_string_set_to_xml() to provide a default value for the tag parameter, as the tag is always different. Therefore, we should develop a method that can differentiate between all possible values of the tag parameter and set the correct one in lang_string_set_to_xml() if it is not specified (using param=None).
Currently,
object_to_xml_element()callslang_string_set_to_xml()without setting thetagparameter.basyx-python-sdk/sdk/basyx/aas/adapter/xml/xml_serialization.py
Lines 934 to 935 in e043960
Unlike the other
..._to_xml()methods, it is not possible forlang_string_set_to_xml()to provide a default value for thetagparameter, as the tag is always different. Therefore, we should develop a method that can differentiate between all possible values of thetagparameter and set the correct one inlang_string_set_to_xml()if it is not specified (usingparam=None).