MCPcopy
hub / github.com/python-openxml/python-docx / xpath

Method xpath

src/docx/oxml/xmlchemy.py:687–692  ·  view source on GitHub ↗

Override of `lxml` _Element.xpath() method. Provides standard Open XML namespace mapping (`nsmap`) in centralized location.

(self, xpath_str: str)

Source from the content-addressed store, hash-verified

685 return serialize_for_reading(self)
686
687 def xpath(self, xpath_str: str) -> Any: # pyright: ignore[reportIncompatibleMethodOverride]
688 """Override of `lxml` _Element.xpath() method.
689
690 Provides standard Open XML namespace mapping (`nsmap`) in centralized location.
691 """
692 return super().xpath(xpath_str, namespaces=nsmap)
693
694 @property
695 def _nsptag(self) -> str:

Callers 15

_inline_lstMethod · 0.80
next_idMethod · 0.80
has_pictureMethod · 0.80
imageMethod · 0.80
_rel_ref_countMethod · 0.80
get_comment_by_idMethod · 0.80
clear_contentMethod · 0.80
grid_offsetMethod · 0.80

Calls

no outgoing calls