Linux command line tool to generate XML BOM

Had you try mine script then? It can be perform entire in script with standard python libraries:

You can go directly from .sch to .csv and vice versa (no XML file needed in the process).