code: def _parse(cls, xml_path):
      
      try:
        parsed_xml = parse(xml_path)
      # Minidom is a frontend for various parsers, only Exception covers ill-formed .xml for them all.
      except Exception as e:
        raise cls.XmlError('Error parsing xml file at {0}: {1}'.format(xml_path, e))
      return parsed_xml
docs: Parse .xml file and return parsed text as a DOM Document.
  
      :param string xml_path: File path of xml file to be parsed.
      :returns xml.dom.minidom.Document parsed_xml: Document instance containing parsed xml.