diff --git a/docx/oxml/xmlchemy.py b/docx/oxml/xmlchemy.py index 46dbf462b..b12370e4f 100644 --- a/docx/oxml/xmlchemy.py +++ b/docx/oxml/xmlchemy.py @@ -745,7 +745,7 @@ def xpath(self, xpath_str): Override of ``lxml`` _Element.xpath() method to provide standard Open XML namespace mapping (``nsmap``) in centralized location. """ - return super(BaseOxmlElement, self).xpath( + return super(_OxmlElementBase, self).xpath( xpath_str, namespaces=nsmap ) @@ -755,5 +755,5 @@ def _nsptag(self): BaseOxmlElement = MetaOxmlElement( - 'BaseOxmlElement', (etree.ElementBase,), dict(_OxmlElementBase.__dict__) + 'BaseOxmlElement', (_OxmlElementBase,), dict(_OxmlElementBase.__dict__) )