Parser Module

XML parsing functionality for GS1 GPC Import.

This module provides functions for parsing GS1 GPC XML data and inserting it into a database.

gs1_gpc.parser.process_gpc_xml(xml_file_path, db_connection)[source]

Parse GS1 GPC XML file and insert data into the database.

Parameters:
  • xml_file_path (str) – Path to the GS1 GPC XML file

  • db_connection – Database connection object

Returns:

Counters with processing statistics

Return type:

dict