(self, siteelement, elementstring)
return variablename
Takes in a siteelement and then elementstring and builds a string
        or list from multiple entry XML tags defined in the xml config
        file. Returns None if there are no entry XML tags for this
        specific elementstring. Returns a list of those entries
        if entry XML tags are found or a string of that entry if only
        one entry XML tag is found.

        Argument(s):
        siteelement -- the siteelement object that will be used as the
        start element.
        elementstring -- the string representation within the siteelement
        that will be utilized to get to the single or multiple entry
        XML tags.

        Return value(s):
        None if no entry XML tags are found.
        List representing all entry keys found within the elementstring.
        string representing an entry key if only one is found
        within the elementstring.

        Restriction(s):
        This Method is tagged as a Class Method
Takes in a siteelement and then elementstring and builds a string
        or list from multiple entry XML tags defined in the xml config
        file. Returns None if there are no entry XML tags for this
        specific elementstring. Returns a list of those entries
        if entry XML tags are found or a string of that entry if only
        one entry XML tag is found.
Takes in a siteelement and then elementstring and builds a string or list from multiple entry XML tags defined in the xml config file . Returns None if there are no entry XML tags for this specific elementstring . Returns a list of those entries if entry XML tags are found or a string of that entry if only one entry XML tag is found .
def buildStringOrListfromXML(self, siteelement, elementstring):
        """
        Takes in a siteelement and then elementstring and builds a string
        or list from multiple entry XML tags defined in the xml config
        file. Returns None if there are no entry XML tags for this
        specific elementstring. Returns a list of those entries
        if entry XML tags are found or a string of that entry if only
        one entry XML tag is found.

        Argument(s):
        siteelement -- the siteelement object that will be used as the
        start element.
        elementstring -- the string representation within the siteelement
        that will be utilized to get to the single or multiple entry
        XML tags.

        Return value(s):
        None if no entry XML tags are found.
        List representing all entry keys found within the elementstring.
        string representing an entry key if only one is found
        within the elementstring.

        Restriction(s):
        This Method is tagged as a Class Method
        """
        variablename = ""
        if len(siteelement.find(elementstring).findall("entry")) == 0:
            return None

        if len(siteelement.find(elementstring).findall("entry")) > 1:
            variablename = []
            for entry in siteelement.find(elementstring).findall("entry"):
                variablename.append(entry.text)
        else:
            variablename = ""
            variablename = siteelement.find(elementstring).find("entry").text
        return variablename
def buildStringOrListfromXML ( self , siteelement , elementstring ) : variablename = "" if len ( siteelement . find ( elementstring ) . findall ( "entry" ) ) == 0 : return None if len ( siteelement . find ( elementstring ) . findall ( "entry" ) ) > 1 : variablename = [ ] for entry in siteelement . find ( elementstring ) . findall ( "entry" ) : variablename . append ( entry . text ) else : variablename = "" variablename = siteelement . find ( elementstring ) . find ( "entry" ) . text return variablename