BIR XML Filing Guide for Philippine Workflows
What BIR XML e-filing is, which forms file as XML vs DAT, how XML is generated from your books and validated through eFPS or eBIRForms, and why one ledger feeds many outputs.
On this page
When BIR compliance goes electronic, your returns stop being paper you sign and become data you transmit. For most e-filed returns, that data travels as XML — a structured, machine-readable file the BIR's systems parse automatically. It's a different pipeline from the .DAT files that carry your summaries and alphalists, and confusing the two is a common source of last-minute filing trouble. This guide explains what XML e-filing is in the BIR context, which forms file as XML versus DAT, how XML is generated from your books and validated, and why one clean set of records should feed every output you submit.
The short answer
XML e-filing is how the BIR receives your returns as structured data instead of typed forms. You prepare the return — from your books or in an e-filing tool — generate or load the XML, and transmit it through the BIR's electronic channel you're enrolled in (eFPS for large/enrolled taxpayers, eBIRForms for the broader population). The summaries that support those returns — your SLSP, SAWT, QAP, and alphalist — generally go in separately as .DAT files. Get your books right and both the XML and the DAT fall out as exports of the same posted entries; get them inconsistent and the two pipelines disagree.
Who this guide is for
- Business owners moving from manual or over-the-counter filing to e-filing for the first time.
- Freelancers and professionals enrolled in eBIRForms who want to understand what the tool is actually transmitting.
- Bookkeepers and accountants who file returns and summaries for clients and want one pipeline instead of re-keying each output.
What XML e-filing actually is
Think of an XML file as a tightly-structured text document that encodes a return's fields — the taxpayer, the period, the line items, the totals — in a layout the BIR's systems can read automatically. It isn't meant to be eyeballed or hand-edited; open one and you'll see nested tags and values, not a friendly form. The BIR defines the structure for each return, and the e-filing tool (or compatible software) writes that structure so you don't have to. The point is machine ingestion: rather than a person retyping your figures into a portal screen, the BIR loads your file directly and runs its own checks.
Because the format is rigid, an XML submission is accepted or rejected — there's little middle ground. That's a feature, not a frustration: it forces each return to be complete and internally consistent before the BIR will take it.
XML vs DAT: which forms use which
The cleanest way to keep the two straight is by what they carry. Returns — the forms you file to declare and pay a tax — generally go in as XML through your e-filing channel. The summaries and alphalists that support those returns — the line-by-line lists the BIR ingests as bulk data — generally go in as .DAT files, a pipeline covered in our BIR DAT file guide.
| XML pipeline | DAT pipeline | |
|---|---|---|
| Carries | E-filed returns (the forms) | Summaries and alphalists (the lists) |
| Typical examples | VAT, percentage tax, and withholding return forms | SLSP, SAWT, QAP, alphalist |
| Usual channel | eFPS or eBIRForms | BIR offline/validation tools, then submission |
| Nature | One return per file | Many line items per file |
| Source | Your books | Your books |
A quarterly VAT return is a good example of the return side — see the BIR Form 2550Q guide for what that form declares, and the broader VAT filing guide for how the return and its SLSP support file fit together. For a deeper look at the file-format idea underneath both, see BIR DAT files explained.
eFPS vs eBIRForms
The BIR runs two main e-filing facilities, and which one you use depends on your enrollment, not your preference. eFPS (Electronic Filing and Payment System) is the online facility used by enrolled and larger taxpayers, with integrated electronic payment. eBIRForms is the offline package plus online submission used by the broader taxpayer base. Both ultimately transmit a structured return to the BIR; the difference is enrollment, the interface, and how payment is handled.
How an XML return gets produced, validated, and filed
Whatever the return, the lifecycle is the same: assemble the figures, encode them into the return's structure, prove the file is sound, transmit it, and keep the proof.
- 1
Assemble the figures from your books
Pull the period's totals — sales, purchases, tax bases, withholding — from your ledger so the return is built on posted, balanced data rather than re-keyed estimates.
- 2
Encode into the return's structure
Prepare the return in your e-filing tool, or generate the XML directly from software that writes the BIR's layout, so the same figures flow through without retyping.
- 3
Validate before transmitting
Let the tool check the file's structure and required fields. Like a DAT file, an XML return is accepted or rejected — fix anything flagged at the source and re-check until it passes.
- 4
File through your channel
Transmit through the facility you're enrolled in — eFPS or eBIRForms — following the current BIR steps for that form, and handle payment through the prescribed method.
- 5
Submit the supporting DAT files
Where the return requires a summary (for example, the SLSP behind a VAT return), generate and validate that .DAT file from the same books and submit it through its own channel.
- 6
Archive the file and the confirmation
Keep the transmitted return, any DAT files, and the BIR acknowledgements with your records, so you can reproduce exactly what you filed.
How this connects to your books
Here's the quiet truth about XML filing: the file is the easy part. The hard part is that the figures inside it have to match your books, your certificates, your summaries, and last period's filings. When your transactions live in a real double-entry ledger — each sale split into net and output VAT, each withheld payment carrying its payee and ATC — the XML return and the DAT summary are simply two views of the same posted entries. Build them from one source and they can't disagree; rebuild each in a spreadsheet and you've signed up for a reconciliation problem every period, which the BIR's own cross-checks will eventually surface.
One ledger, every output
mybizmate.io keeps your sales, purchases, and withholding in a single double-entry ledger and produces the BIR outputs — XML for the e-filing returns and DAT files for the SLSP, SAWT, QAP, and alphalist — from those same entries, so what you transmit already foots to your books.
Common mistakes
- Treating XML and DAT as one step. They're separate pipelines — filing the return doesn't submit the summary, and vice versa. Track both for each period.
- Hand-editing the XML. The structure is exact; opening a file to 'just fix a number' usually corrupts it. Fix the source figures and regenerate.
- Using an outdated form package. The BIR updates eBIRForms and eFPS form versions; an old version can produce a return the channel rejects.
- Filing figures that don't tie to the books. If the return doesn't foot to your ledger, it won't reconcile with your summaries — or with next period's filings.
- Not keeping the confirmation. If you can't reproduce exactly what you transmitted, you can't defend it later.
What is BIR XML filing?
It's e-filing a BIR return as a structured XML data file rather than a typed or printed form. The XML encodes the return's fields in a layout the BIR's systems read automatically; you generate it from your books or an e-filing tool, validate it, and transmit it through your channel.
What's the difference between an XML file and a DAT file?
XML generally carries the e-filed returns — the forms themselves. DAT files generally carry the summaries and alphalists (SLSP, SAWT, QAP, alphalist) — the line-by-line lists. They're two pipelines that should both come from the same books; see our BIR DAT file guide for the summaries side.
Do I file through eFPS or eBIRForms?
It depends on your enrollment with the BIR. eFPS is the online facility for enrolled and larger taxpayers, with integrated payment; eBIRForms is the offline-plus-online package used by the broader taxpayer base. Confirm which applies to you with the BIR or your accountant.
Why was my XML return rejected?
Usually a structure or version problem — an outdated form package, a malformed file, a missing required field, or figures that don't foot. Read the tool's message to find the issue, fix it at the source data, regenerate, and re-validate before transmitting again.
Can software generate the XML for me?
Yes — software that writes the BIR's prescribed layout can produce the XML return directly from your books, so you skip re-keying. You still validate and transmit through the BIR's channels, and you remain responsible for the accuracy and timeliness of what you file. No software files on your behalf or replaces BIR registration.
Official references
- BIR eServices — eFPS, eBIRForms, and validation tools
- Bureau of Internal Revenue (BIR) — Forms, file formats, and current e-filing instructions
Always confirm current forms, rates, thresholds, and deadlines against official BIR issuances before you file.
This article is general information on Philippine bookkeeping and tax compliance, not legal, accounting, or tax advice. mybizmate.io is compliance-supporting software — it helps you prepare books, reports, and BIR-ready files, and is not a substitute for BIR registration, for filing your returns, or for advice from a qualified professional. Always confirm current BIR rules before you file.
