Handling electronic invoices across regions shouldn't require pulling 40 transitive XML dependencies or uploading sensitive financial records to a third-party SaaS API. Today I am open-sourcing peppol-ubl-einvoice-parser under the MIT license — a pure ES Module XML electronic invoice parser and arithmetic auditor with 0 npm dependencies .
Why Another XML E-Invoice Parser?
Most generic XML-to-JSON libraries strip namespace context, struggle with regional e-invoicing dialects, and treat invoice amounts as opaque strings. Whether you are reconciling B2B procurement feeds in Europe or automating VAT compliance in Southeast Asia, you typically need to handle four incompatible schemas:
OASIS UBL 2.1 & Peppol BIS 3.0 ( Invoice / CreditNote )
German XRechnung / UN/CEFACT CII ( CrossIndustryInvoice )
Italian FatturaPA ( FatturaElettronica )
Vietnam GDT Circular 78 ( HDon / DLHDon )
Equally important, well-formed XML does not guarantee mathematically valid totals.…