modelspec.utils.build_xml_element

modelspec.utils.build_xml_element(data, parent=None)[source]

This recursively builds an XML element structure from a dictionary or a list.

Parameters:
  • parent – The parent XML element to attach the new element(s) to.

  • data – The data to convert into XML elements.

Returns:

Parent