def checkElement(tagName, childElement, mapComponents, fullName=None):
    if not fullName:
        fullName = getFullName(tagName, childElement)
    if not tagName in mapComponents:
        mapComponents[tagName] = {}
    if not fullName in mapComponents[tagName]:
        mapComponents[tagName][fullName] = childElement
def addValueToMap(tagName,
                  childElement,
                  mapComponents,
                  setDuplicatedFullNames,
                  fullName=None):
    if not fullName:
        fullName = getFullName(tagName, childElement)
    if not tagName in mapComponents:
        mapComponents[tagName] = {}
    if fullName in mapComponents[tagName]:
        setDuplicatedFullNames.add(f'{tagName}-{fullName}')
    mapComponents[tagName][fullName] = getChildData(childElement)
Beispiel #3
0
def addValueToMap(tagName, childElement, mapComponents, fullName=None):
    if not fullName:
        fullName = getFullName(tagName, childElement)
    if not tagName in mapComponents:
        mapComponents[tagName] = {}
    mapComponents[tagName][fullName] = getChildData(childElement)