pm4py.read.read_ocel2_xml#
- pm4py.read.read_ocel2_xml(file_path: str, variant_str: str | None = None, encoding: str = 'utf-8') OCEL [source]#
Reads an OCEL2.0 event log from an XML file
- Parameters:
file_path (
str
) – path to the OCEL2.0 event logvariant_str – (optional) specification of the importer variant to be used
encoding (
str
) – the encoding to be used (default: utf-8)
- Return type:
OCEL
import pm4py ocel = pm4py.read_ocel2_xml("<path_to_ocel_file.xmlocel>")