docs: def get_posts_data(self):
          """
          given a WordPress xml export file, will return list
          of dictionaries with keys that match
          the expected json keys of a wordpress API call
          >>> xp = XML_parser('example_export.xml')
          >>> json_vals = {"slug","ID", "title","description", "content", "author", "terms", "date", }
          >>> data = xp.get_posts_data()
          >>> assert [ val in json_vals for val in data[0].keys() ]
          """
          items = self.chan.findall("item") #(e for e in chan.getchildren() if e.tag=='item')
          # turn item element into a generic dict
          item_dict_gen = (self.item_dict(item) for item in items)
          # transform the generic dict to one with the expected JSON keys
          all_the_data = [self.translate_item(item) for item in item_dict_gen if self.translate_item(item)]
          return all_the_data