def getEvaluatedDictionary(evaluationKeys, xmlElement):
 evaluatedDictionary = {}
 zeroLength = (len(evaluationKeys) == 0)
 for key in xmlElement.attributeDictionary.keys():
  if ((key in evaluationKeys) or zeroLength):
   value = getEvaluatedValueObliviously(key, xmlElement)
   if (value == None):
    valueString = str(xmlElement.attributeDictionary[key])
    print 'Warning, getEvaluatedDictionary in evaluate can not get a value for:'
    print valueString
    evaluatedDictionary[(key + '__Warning__')] = ('Can not evaluate: ' + valueString.replace('"', ' ').replace("'", ' '))
   else:
    evaluatedDictionary[key] = value
 return evaluatedDictionary

def getEvaluatedDictionary ( evaluationKeys , xmlElement ) : evaluatedDictionary = { } zeroLength = ( len ( evaluationKeys ) == 0 ) for key in xmlElement . attributeDictionary . keys ( ) : if ( ( key in evaluationKeys ) or zeroLength ) : value = getEvaluatedValueObliviously ( key , xmlElement ) if ( value == None ) : valueString = str ( xmlElement . attributeDictionary [ key ] ) print 'Warning, getEvaluatedDictionary in evaluate can not get a value for:' print valueString evaluatedDictionary [ ( key + '__Warning__' ) ] = ( 'Can not evaluate: ' + valueString . replace ( '"' , ' ' ) . replace ( "'" , ' ' ) ) else : evaluatedDictionary [ key ] = value return evaluatedDictionary
get the evaluated dictionary .