write_zipfile_xml

write_zipfile_xml(element_tree: lxml.etree.ElementTree, path: str | Path, inner_path: str, **kwargs: Any) None[source]

Write an XML element tree to an inner XML file to a zip archive.

Parameters:
  • element_tree – An XML element tree

  • path – The path to the resulting zip archive

  • inner_path – The path inside the zip archive to write the XML element

  • kwargs – Additional kwargs to pass to lxml.etree.tostring()