(elem)
return elem
Assume an ETree.Element object or a string representation.
    Return the ETree.Element object
Assume an ETree.Element object or a string representation.
    Return the ETree.Element object
Assume an ETree . Element object or a string representation . Return the ETree . Element object
def _get_elem(elem):
    """
    Assume an ETree.Element object or a string representation.
    Return the ETree.Element object
    """
    if not ET.iselement(elem):
        try:
            elem = ET.fromstring(elem)
        except:
            print("Value Error", elem)
            raise ValueError("Cannot convert to element")
    return elem
def _get_elem ( elem ) : if not ET . iselement ( elem ) : try : elem = ET . fromstring ( elem ) except : print ( "Value Error" , elem ) raise ValueError ( "Cannot convert to element" ) return elem