I have written a program in C to parse large XML files and then create files with insert statements. Some other process would ingest the files into a MySQL database. This
If you can't use LOAD DATA INFILE like others have suggested, use prepared queries for inserts.