pm4py.write.write_ocel2_xml#

pm4py.write.write_ocel2_xml(ocel: OCEL, file_path: str)[source]#

Writes an OCEL2.0 object to disk to an XML file (exported as .xmlocel file).

Parameters:
  • ocel (OCEL) – OCEL object

  • file_path (str) – target file path to the XML file

import pm4py

log = pm4py.write_ocel2_sqlite(ocel, '<path_to_export_to>')