Produce XML-file bytes for `part_elm`, suitable for writing directly to a `.xml` file. Includes XML-declaration header.
(part_elm: BaseOxmlElement)
| 54 | |
| 55 | |
| 56 | def serialize_part_xml(part_elm: BaseOxmlElement) -> bytes: |
| 57 | """Produce XML-file bytes for `part_elm`, suitable for writing directly to a `.xml` file. |
| 58 | |
| 59 | Includes XML-declaration header. |
| 60 | """ |
| 61 | return etree.tostring(part_elm, encoding="UTF-8", standalone=True) |
| 62 | |
| 63 | |
| 64 | class CT_Default(BaseOxmlElement): |
no outgoing calls
searching dependent graphs…