MCPcopy Create free account
hub / github.com/scanny/python-pptx / parse_xml

Function parse_xml

src/pptx/oxml/__init__.py:34–36  ·  view source on GitHub ↗

Return root lxml element obtained by parsing XML character string in `xml`.

(xml: str | bytes)

Source from the content-addressed store, hash-verified

32
33
34def parse_xml(xml: str | bytes):
35 """Return root lxml element obtained by parsing XML character string in `xml`."""
36 return etree.fromstring(xml, oxml_parser)
37
38
39def register_element_cls(nsptagname: str, cls: Type[BaseOxmlElement]):

Callers 15

txMethod · 0.90
catMethod · 0.90
valMethod · 0.90
xValMethod · 0.90
yValMethod · 0.90
bubbleSizeMethod · 0.90
newMethod · 0.90
newMethod · 0.90
newMethod · 0.90
_xml_rels_forMethod · 0.90
loadMethod · 0.90
from_xmlMethod · 0.90

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…