as2fm.scxml_converter.scxml_entries.xml_utils.read_value_from_xml_arg_or_child
- as2fm.scxml_converter.scxml_entries.xml_utils.read_value_from_xml_arg_or_child(scxml_type: Type[ScxmlBase], xml_tree: Element, tag_name: str, valid_types: Iterable[Type[ScxmlBase | str]], none_allowed: bool = False) str | ScxmlBase | None
Read a value from an xml attribute or, if not found, the child tag with the same name.
To read the value from the xml arguments, valid_types must include string.