def getXMLElementObject(evaluatedLinkValue):
 if (evaluatedLinkValue.__class__.__name__ != 'XMLElement'):
  print 'Warning, could not get XMLElement in getXMLElementObject in evaluate for:'
  print evaluatedLinkValue
  return None
 if (evaluatedLinkValue.object == None):
  print 'Warning, evaluatedLinkValue.object is None in getXMLElementObject in evaluate for:'
  print evaluatedLinkValue
  return None
 return evaluatedLinkValue.object

def getXMLElementObject ( evaluatedLinkValue ) : if ( evaluatedLinkValue . __class__ . __name__ != 'XMLElement' ) : print 'Warning, could not get XMLElement in getXMLElementObject in evaluate for:' print evaluatedLinkValue return None if ( evaluatedLinkValue . object == None ) : print 'Warning, evaluatedLinkValue.object is None in getXMLElementObject in evaluate for:' print evaluatedLinkValue return None return evaluatedLinkValue . object
get xmlelementobject .