def METHOD_NAME(self):
    # In XPath 2.0 we could use ".//svg:glyph/(@unicode|@horiz-adv-x)"
    xpath = ".//svg:glyph[@unicode and @horiz-adv-x]/@*[name()='unicode' or name()='horiz-adv-x']"
    hax = self.svg.xpath(xpath, namespaces=NSS)
    if len(hax) == 0:
        return {}
    return dict(zip(hax[0::2], [int(x) for x in hax[1::2]]))