pm4py.write.write_ocel2_xml#

pm4py.write.write_ocel2_xml(ocel: OCEL, file_path: str, encoding: str = 'utf-8') None[source]#

Writes an OCEL2.0 object to disk in the .xmlocel file format.

Parameters:
  • ocel (OCEL) – OCEL object.

  • file_path (str) – Target file path to the XML-OCEL file.

  • encoding (str) – The encoding to be used (default: utf-8).

import pm4py

pm4py.write_ocel2_xml(ocel, '<path_to_export_to>')