def writeElementXML(self, elem):
    if (type(elem).__name__ == 'Constant'):
        return self.writeConstantXML(elem)
    else:
        return None
def writeElementXML(self, elem):
    if (type(elem).__name__ == 'Constant'):
        return self.writeConstantXML(elem)
    else:
        return None