def METHOD_NAME(self, failopen_ok=False):
    """Read the XML object's file source and return self."""
    if failopen_ok and not os.path.exists(self.filename):
        self._init_empty_xml()
    else:
        try:
            self.xml = xml.dom.minidom.parse(self.filename)
            strip_white_space(self.xml)
        except:
            if not failopen_ok:
                raise Exception("Couldn't parse XML config\n")
            print("Warning: couldn't parse XML file", file=sys.stderr)
            self._init_empty_xml()
    try:
        self._get_elements()
    except:
        if not failopen_ok:
            raise Exception("%s: Couldn't get elements from XML file")
    return self