def setLocalAttribute(elementNode):
 if (elementNode.xmlObject != None):
  return
 for key in elementNode.attributes:
  if key[:1].isalpha():
   value = getEvaluatorSplitWords(getLocalAttributeValueString(key, elementNode.attributes[key].strip()))
   elementNode.xmlObject = KeyValue(key, value)
   return
 elementNode.xmlObject = KeyValue()

def setLocalAttribute ( elementNode ) : if ( elementNode . xmlObject != None ) : return for key in elementNode . attributes : if key [ : 1 ] . isalpha ( ) : value = getEvaluatorSplitWords ( getLocalAttributeValueString ( key , elementNode . attributes [ key ] . strip ( ) ) ) elementNode . xmlObject = KeyValue ( key , value ) return elementNode . xmlObject = KeyValue ( )
set the local attribute if any .