def getComplexByPrefixBeginEnd(prefixBegin, prefixEnd, valueComplex, xmlElement):
 valueComplex = getComplexByPrefix(prefixBegin, valueComplex, xmlElement)
 if (prefixEnd in xmlElement.attributeDictionary):
  return (0.5 * getComplexByPrefix((valueComplex + valueComplex), prefixEnd, xmlElement))
 else:
  return valueComplex

def getComplexByPrefixBeginEnd ( prefixBegin , prefixEnd , valueComplex , xmlElement ) : valueComplex = getComplexByPrefix ( prefixBegin , valueComplex , xmlElement ) if ( prefixEnd in xmlElement . attributeDictionary ) : return ( 0.5 * getComplexByPrefix ( ( valueComplex + valueComplex ) , prefixEnd , xmlElement ) ) else : return valueComplex
get complex from element node .