code: def parse_footnotes(document, xmlcontent):
      
  
      footnotes = etree.fromstring(xmlcontent)
      document.footnotes = {}
  
      for footnote in footnotes.xpath('.//w:footnote', namespaces=NAMESPACES):
          _type = footnote.attrib.get(_name('{{{w}}}type'), None)
  
          # don't know what to do with these now
          if _type in ['separator', 'continuationSeparator', 'continuationNotice']:
              continue
  
          paragraphs = [parse_paragraph(document, para) for para in footnote.xpath('.//w:p', namespaces=NAMESPACES)]
  
          document.footnotes[footnote.attrib[_name('{{{w}}}id')]] = paragraphs
docs: Parse footnotes document.
  
      Footnotes are defined in file 'footnotes.xml'