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

Method xml_file_bytes

src/pptx/opc/oxml.py:145–151  ·  view source on GitHub ↗

Return XML bytes, with XML-declaration, for this ` ` element. Suitable for saving in a .rels stream, not pretty printed and with an XML declaration at the top.

(self)

Source from the content-addressed store, hash-verified

143
144 @property
145 def xml_file_bytes(self) -> bytes:
146 """Return XML bytes, with XML-declaration, for this `<Relationships>` element.
147
148 Suitable for saving in a .rels stream, not pretty printed and with an XML declaration at
149 the top.
150 """
151 return oxml_to_encoded_bytes(self, encoding="UTF-8", standalone=True)
152
153
154class CT_Types(BaseOxmlElement):

Callers

nothing calls this directly

Calls 1

oxml_to_encoded_bytesFunction · 0.85

Tested by

no test coverage detected