#NEWLINE# def _ConvertElementTreeToMember( self , child_tree ) : #NEWLINE# #INDENT# if self . __class__ . _children . has_key ( child_tree . tag ) : #NEWLINE# #INDENT# member_name = self . __class__ . _children [ self . tag ] [ 0 ] #NEWLINE# member_class = self . __class__ . _children [ child_tree . tag ] [ 1 ] #NEWLINE# if isinstance ( member_class , list ) : #NEWLINE# #INDENT# if ( getattr ( self , member_name ) is None ) : #NEWLINE# #INDENT# setattr ( self , member_name , [ ] ) #NEWLINE# #UNINDENT# getattr ( self , member_name ) . append ( _CreateClassFromElementTree ( member_class [ 0 ] , child_tree ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# setattr ( self , member_name , _CreateClassFromElementTree ( member_class , child_tree ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# ExtensionContainer . _ConvertElementTreeToMember ( self , child_tree )