def extract_month_from_xml_element(element)
      month = element.xpath('date/month').text.to_i
      year = element.xpath('date/year').text.to_i
      [year, month]
    end
def extract_month_from_xml_element(element)
      month = element.xpath('date/month').text.to_i
      year = element.xpath('date/year').text.to_i
      [year, month]
    end
Extracts the year and month from the given XML element.

 @param [Nokogiri::XML::Element] element The XML element.
 @return [Array<Integer, Integer>] An Array consisting of year and month.