def get_authors(self): authors = self.xml.get_nodes('Creator') r_authors = [] #self.debug = True for author in authors: #print(author) #print(type(author)) a = Author() a.set_author_id(self.xml.get_text('CreatorID', author)) a.set_author_date(self.xml.get_text('Dates', author)) a.set_author_loc(self.xml.get_text('Location', author)) a.set_author_name(self.xml.get_text('Name', author)) a.set_author_num(self.xml.get_text('Numeration', author)) a.set_author_role(self.xml.get_text('Role', author)) a.set_author_title(self.xml.get_text('Title', author)) a.set_author_unit(self.xml.get_text('Unit', author)) if self.debug: print('xxx--------- ') print(a.get_author_id()) print(a.get_author_date()) print(a.get_author_loc()) print(a.get_author_name()) print(a.get_author_num()) print(a.get_author_role()) print(a.get_author_title()) print(a.get_author_unit()) print('--------- ') r_authors.append(a) #self.debug = False return r_authors