def getArchivableObjectAddToParent(archivableClass, xmlElement):
 archivableObject = archivableClass()
 archivableObject.xmlElement = xmlElement
 xmlElement.object = archivableObject
 archivableObject.setToObjectAttributeDictionary()
 xmlElement.parent.object.archivableObjects.append(archivableObject)
 return archivableObject

def getArchivableObjectAddToParent ( archivableClass , xmlElement ) : archivableObject = archivableClass ( ) archivableObject . xmlElement = xmlElement xmlElement . object = archivableObject archivableObject . setToObjectAttributeDictionary ( ) xmlElement . parent . object . archivableObjects . append ( archivableObject ) return archivableObject
get the archivable object and add it to the parent object .