Parser Module
XML parsing functionality for GS1 GPC.
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, callback=None)[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
callback (GPCProcessedCallback, optional) – Callback for processing events
- Returns:
Counters with processing statistics
- Return type: