component_model.utils.xml¶
Functions
|
Read xml file and return sub as Element object. |
|
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.