Root lxml element obtained by parsing XML character string `xml`. The custom parser is used, so custom element classes are produced for elements in `xml` that have them.
(xml: str | bytes)
| 21 | |
| 22 | |
| 23 | def parse_xml(xml: str | bytes) -> "BaseOxmlElement": |
| 24 | """Root lxml element obtained by parsing XML character string `xml`. |
| 25 | |
| 26 | The custom parser is used, so custom element classes are produced for elements in |
| 27 | `xml` that have them. |
| 28 | """ |
| 29 | return cast("BaseOxmlElement", etree.fromstring(xml, oxml_parser)) |
| 30 | |
| 31 | |
| 32 | def register_element_cls(tag: str, cls: Type["BaseOxmlElement"]): |
no outgoing calls
searching dependent graphs…