def get_tags_el_array_from_text()

in o2a/utils/xml_utils.py [0:0]


def get_tags_el_array_from_text(root: ET.Element, tag: str) -> List[str]:
    """
    If nodes exist in the oozie_node with the tag specified in tag, it
    will build an array of text values for all matching nodes. While doing it
    it will attempt to resolve EL expressions in the text values.
    """
    tags_array = []
    node_array = find_nodes_by_tag(root=root, tag=tag)
    if node_array:
        for node in node_array:
            if node.text is not None:
                tags_array.append(el_parser.translate(node.text))
    return tags_array