MCPcopy Index your code
hub / github.com/python-openxml/python-docx / get_child_element

Method get_child_element

src/docx/oxml/xmlchemy.py:499–505  ·  view source on GitHub ↗
(obj: BaseOxmlElement)

Source from the content-addressed store, hash-verified

497 descriptor."""
498
499 def get_child_element(obj: BaseOxmlElement):
500 child = obj.find(qn(self._nsptagname))
501 if child is None:
502 raise InvalidXmlError(
503 "required ``<%s>`` child element not present" % self._nsptagname
504 )
505 return child
506
507 get_child_element.__doc__ = "Required ``<%s>`` child element." % self._nsptagname
508 return get_child_element

Callers

nothing calls this directly

Calls 2

qnFunction · 0.90
InvalidXmlErrorClass · 0.90

Tested by

no test coverage detected