FatturaPA: Parse XML → JSON

italia_fatturapa_parse · action · Italy (PEC/SDI) · Available · v1.0.0

Description

Deterministic parser for Italian electronic invoices (FatturaPA FPR12/FPA12) from XML to typed JSON: supplier and customer (name, VAT, tax code), document type, number, date, total, ALL line items with prices and VAT rates, per-rate VAT summaries and payment due dates. Namespace-agnostic XPath on the libxml2 engine, optional validation against the official v1.2.2 schema (offline). Unlike an LLM re-reading the XML, extracted amounts are EXACT and repeatable — feed the clean JSON to AI, databases or your ERP.

⚙️ Configuration parameters

Fields shown in the editor when configuring the node. Generated directly from the NodeDefconfigFields.

FieldTypeRequiredDefaultDescription
xml
XML FatturaPA
expressionno
{{ $node.p7m.json.content }}
L'XML della fattura. Vuoto = usa input.content del nodo precedente (concatenazione diretta da "P7M: Estrai contenuto").
validateXsd
Valida contro XSD ufficiale v1.2.2
booleannofalseSe on: valida l'XML contro lo schema ufficiale FatturaPA v1.2.2 (offline) e riporta le violazioni nel campo output "xsd" senza bloccare il parse.

⬆️ Node output

Fields available to downstream nodes via $node.<alias>.json.<field>:

  • fatture
  • count
  • xsd

💡 Configuration example

JSON snippet of the node as it appears in the workflow. Values are derived fromdefaultValue and from required parameters.

{
  "id": "node-italia_fatturapa_parse-1",
  "defId": "italia_fatturapa_parse",
  "label": "FatturaPA: Parse XML → JSON",
  "config": {
    "validateXsd": false
  }
}

🔗 Related nodes in the same category

Ready to use FatturaPA: Parse XML → JSON?

Available now on all FlowForge plans. Try it free without a credit card.

Start freeBrowse all nodes