#NEWLINE# @ staticmethod #NEWLINE# def convert( obj ) : #NEWLINE# #INDENT# if ( XML_TYPE in obj . layouts ) : #NEWLINE# #INDENT# obj . __class__ = XMLObject #NEWLINE# for prop in obj . properties : #NEWLINE# #INDENT# prop . __class__ = XMLProperty #NEWLINE# #UNINDENT# for choice in obj . choices : #NEWLINE# #INDENT# choice . __class__ = XMLChoice #NEWLINE# for prop in obj . properties : #NEWLINE# #INDENT# prop . __class__ = XMLProperty