parse_nfe_xml
Parse NF-e or NFC-e XML to extract structured data including issuer, recipient, items, totals, and protocol. Works with or without nfeProc wrapper and namespace.
Instructions
Parseia o XML completo de uma NF-e ou NFC-e e retorna os dados estruturados. Aceita XML com ou sem o involucro e com ou sem namespace do portal fiscal. Util para extrair emitente, destinatario, itens, totais e protocolo a partir do XML bruto.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml_content | Yes | XML completo da NF-e ou NFC-e como string. Pode conter o involucro <nfeProc> ou ser a NF-e nua. Aceita XML com ou sem namespace do portal fiscal. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||