How elisonrj/xml2xlsx works
This small script converts XML electronic invoices into an XLSX spreadsheet. At startup it lists the xml/ directory, parses each invoice and extracts selected issuer, recipient, address, and shipping fields, then builds a pandas table and writes notasfiscais.xlsx under xlsx/. The graph separates those runtime stages while keeping the top-level batch script as their orchestrator. The only implementation source shown is main.py; input files are present in the tree, but the output directory is not.
Main entry points: main.py Batch conversion · xml Invoice XML files
Components 7
Other components
- User
- Invoice XML files
xml - Batch conversion
main.py - Invoice extractor
main.py - Extracted rows
main.py - DataFrame assembly
main.py - XLSX workbook
Connections 8
- User → Batch conversion: runs
main.py - Batch conversion → Invoice XML files: lists files
main.py - Invoice XML files → Invoice extractor: provides XML
main.py - Batch conversion → Invoice extractor: calls per file
main.py - Invoice extractor → Extracted rows: appends fields
main.py - Batch conversion → DataFrame assembly: builds DataFrame
main.py - Extracted rows → DataFrame assembly: provides data
main.py - Batch conversion → XLSX workbook: writes workbook
main.py