def METHOD_NAME(self):
    """
    Export the Gephi XML file.
    Parameters
    ----------
    None
    Returns
    -------
    str
        Filepath of the created file.
    Examples
    --------
    >>> dtg = DatabaseToGEXF(database='example_db', include_descendants=False)
    >>> dtg.export()
    '/path/to/example_db.gexf'
    """
    E = ElementMaker(
        namespace="http://www.gexf.net/1.2draft",
        nsmap={None: "http://www.gexf.net/1.2draft"},
    )
    meta = E.meta(
        E.creator("Brightway2"),
        E.description(self.database),
        lastmodified=datetime.date.today().strftime("%Y-%m-%d"),
    )
    attributes = E.attributes(
        E.attribute(id="0", title="category", type="string"), **{"class": "node"}
    )
    nodes, edges = self.get_data(E)
    graph = E.graph(
        attributes, nodes, edges, mode="static", defaultedgetype="directed"
    )
    with open(self.filepath, "w", encoding="utf-8") as f:
        # Need XML declaration, but then ``tostring`` returns bytes
        # so need to decode.
        # See https://bugs.python.org/issue10942
        # and http://makble.com/python-why-lxml-etree-tostring-method-returns-bytes
        f.write(
            tostring(
                E.gexf(meta, graph, version="1.2"),
                xml_declaration=True,
                encoding="utf-8",
                pretty_print=True,
            ).decode("utf-8")
        )
    return self.filepath