component_model.utils.xml

Functions

read_xml(xml[, sub])

Read xml file and return sub as Element object.

xml_to_python_val(val)

Translate the xml (string) value to a python value and type.

component_model.utils.xml.read_xml(xml: Path | str, sub: str = 'modelDescription.xml') Element

Read xml file and return sub as Element object.

xml can be

  • a zip file containing the xml file as sub

  • a xml file (e.g. modelDescription.xml).

  • a xml literal string. sub ignored in this case.

component_model.utils.xml.xml_to_python_val(val: str)

Translate the xml (string) value to a python value and type.