Skip to content

LEDES XML 2.0, 2.1 and 2.2 Explained

The short answer

LEDES XML is the LEDES Oversight Committee’s family of XML e-billing formats, maintained in three lines: 2.0, 2.1 and 2.2. The newest releases are 2.0.4 (updated June 2023) and 2.1.5 and 2.2.2 (both April 2026). XML carries what pipe files can’t, such as several taxes, matter-level discounts and regulatory statements. LEDES 2000 is retired.

  • By the MatterBill team
  • Updated
  • 7 min read
  • New to LEDES? Start with What is LEDES?
On this page10 sections
  1. What LEDES XML is
  2. Versions and status
  3. What changed in April 2026
  4. How an XML invoice is built
  5. XML invoice math
  6. Platforms that accept XML
  7. LEDES 2000 is retired
  8. XML or 1998B?
  9. Working with XML in MatterBill
  10. FAQ
Maintained lines
2.0 · 2.1 · 2.2
Latest releases
2.0.4 · 2.1.5 · 2.2.2
Newest
April 2026
Encoding
UTF-8
Retired
LEDES 2000
In MatterBill
Create, edit, validate and export

What is LEDES XML?

LEDES XML is a set of XML invoice formats from the LEDES Oversight Committee (LOC). Where a 1998B file repeats the invoice details on every flat line, an XML invoice nests them: a firm contains clients, a client contains invoices, an invoice contains matters, and each matter holds its timekeeper summary, fees and expenses. That structure has room for detail a pipe file can’t carry, such as several taxes, discounts and credits at matter level, split billing and regulatory statements.

LEDES XML 2.0 was ratified in 2006, 2.1 in 2008 and 2.2 in 2020. The LOC’s 1998BI page points global e-billing to all three lines. In 2023 the LOC updated all three together, and in April 2026 it released corrections for 2.1 and 2.2.

Which LEDES XML versions are current?

LineReleasesLatest
XML 2.02.0 (Jan 2006), 2.0.1 (Apr 2008), 2.0.2 (Jul 2014), 2.0.3 (Jan 2020), 2.0.4 (Mar 2023)2.0.4 Update, June 2023: 172 data elements in 15 segments
XML 2.12.1 (Apr 2008), 2.1.1 (Nov 2009), 2.1.2 (Jul 2014), 2.1.3 (Jan 2020), 2.1.4 (Mar 2023, updated Jun 2023)2.1.5, April 2026: 205 data elements in 16 segments
XML 2.22.2 (Jan 2020), 2.2.1 (Mar 2023, updated Jun 2023)2.2.2, April 2026: 216 data elements in 18 segments

The element counts are the LOC’s; Wikipedia gives slightly different figures for the base versions (156, 194 and 206 against the LOC’s 153, 191 and 205). Each line builds on the last: 2.1 added a regulatory statement segment, and 2.2 added tiered taxes, such as Japanese withholding tax, with two extra tax segments.

What changed in LEDES XML 2.1.5 and 2.2.2?

Both versions were released in April 2026 to correct a math error: in the 2.1.4 versions, client funds applied were counted twice in the invoice total. If your billing system or your client still uses an earlier release, confirm which version the client’s platform expects before you switch.

The 2023 releases (2.0.4, 2.1.4 and 2.2.1) introduced a Rate schema that states rates in the timekeeper’s home currency. The LOC advises confirming that the client’s platform supports it before you use it.

How is a LEDES XML invoice structured?

The outline below shows the main segments of an XML 2.1 invoice as documented in Mitratech’s Collaborati reproduction and the LOC’s 2.1 white paper. Segment names use the documentation’s @SEGMENT style. It is a map of the hierarchy, not a complete file.

<ledesxmlebilling2.1>
  @FIRM                  firm ID, name, addresses, billing contact
    @TAX                 tax IDs, types and rates used on the invoice
    @CLIENT              client ID, name, address, tax ID
      @INVOICE           number, date, currency, period, totals
        @REGULATORY_STATEMENT (2.1 and later)
        @MATTER           client matter ID, name, billing type, totals
          @TAX_SUMMARY
          @MATTER_DISC_CRED  matter-level discounts and credits
          @TKSUM            one per timekeeper: ID, name, level, rate
          @FEE              date, timekeeper, task and activity codes, units, rate
          @EXPENSE          date, expense code, units, rate, amounts

Three practical differences from 1998B follow from this shape:

  • Timekeepers are summarised once per matter in @TKSUM and referenced from each fee. Legal Tracker rejects a fee or expense whose timekeeper ID is missing from @TKSUM.
  • Discounts and credits can apply to a single fee or expense, or to the whole matter.
  • The file must be UTF-8, while 1998B and 1998BI encoding expectations vary by platform.

How does LEDES XML invoice math work?

total_amount      = base_amount + item_disc_cred_amount (each fee or expense)
base_amount       = units × rate (charge_type U; a fixed amount for F)
matter_total_due  = net fees + net expenses (after discounts, split and tax)
inv_total_net_due = sum of matter_total_due

The 2.1 white paper adds rules a validator can check: discounts and withholding tax are negative amounts, the invoice total can’t be negative, a credit note must reference the original invoice, country codes follow ISO 3166, and differences of one or two cents from rounding shouldn’t cause a rejection. Platforms add their own. Legal Tracker, for example, accepts only a fixed, case-sensitive list of tax types: VAT, GST, HST, PST, QST, Sales Tax and Withholding Tax.

Which e-billing platforms accept LEDES XML?

PlatformLEDES XML support, as documented
Legal TrackerXML 2.1 and 2.2, alongside 1998B, 1998BI and 1998BI v5
CollaboratiXML 2.0 and 2.1, plus LEDES 2000; its Format Validator checks XML 2.0 and 2.1 only
LawVuXML 2.0 and 2.1 with line-level approval; 1998B and 1998BI with limited support
OnitBillingPoint accepts XML 2.1; Counsel Exchange lists XML 2.1 as “coming soon”
CounselLinkOnboarding documents list XML 2.0 and 2.1, but its import help says the standard import doesn’t accept 2.1 files
Brightflag, Apperio, CounselGONo XML: LEDES 1998B and 1998BI V2 only

Where sources conflict, as with CounselLink, ask the client which format its setup accepts before you build an XML invoice.

Is LEDES 2000 still supported?

No. LEDES 2000 was an earlier XML invoice format defined with a DTD. The LOC states that it no longer supports it; the format was retired in March 2022, and Wikipedia notes that its documentation was due to leave ledes.org in February 2024. Collaborati and CounselLink still list it, and some billing tools still export it, but for new work use 1998B, 1998BI or XML 2.x unless a client specifically asks for LEDES 2000.

Should you send LEDES XML or 1998B?

Send what the client asks for. Without a stated preference, the trade-off looks like this:

  • 1998B or 1998BI when the client accepts them. Most small-firm billing software exports 1998B, and many tools export nothing else.
  • XML 2.1 or 2.2 when the client requests it, when you need line-level approval on LawVu, or when the invoice involves several taxes, withholding, matter-level discounts, alternative fee arrangements or regulatory statements.

Export support for XML is thinner: Clio exports XML 2.0 and 2.1, Bill4Time has offered 2.1 in beta, and CosmoLex, CaseFox and AppColl export 2.0. If your software can’t produce the format a client wants, the 1998BI guide covers the pipe-delimited route for tax and currency.

Can MatterBill read LEDES XML?

MatterBill preserves the native XML document alongside a readable invoice projection. The workspace supports firms, clients, invoices, matters, fees, expenses, timekeepers, tax records and supported adjustment records using guided forms. Recalculation and changes remain explicit and reviewable.

Check an XML invoice in the free validator

Frequently asked questions

What is the latest version of LEDES XML?

There are three maintained lines. The latest releases are LEDES XML 2.1.5 and 2.2.2, both from April 2026, and 2.0.4 (March 2023, updated in June 2023). The April 2026 releases correct a calculation error that counted client funds applied twice in the invoice total.

Is LEDES XML 2.0 the same as LEDES 2000?

No. LEDES 2000 is an older XML invoice format that the LEDES Oversight Committee no longer supports. LEDES XML 2.0 is a different e-billing format, first ratified in 2006 and still maintained alongside versions 2.1 and 2.2.

What encoding does LEDES XML use?

UTF-8. The LOC’s XML 2.1 white paper requires it. The pipe-delimited 1998B and 1998BI formats are plain text, and the encoding they expect varies by platform.

Does Brightflag accept LEDES XML?

No. Brightflag accepts LEDES files that start with the LEDES1998B[] or LEDES98BI V2[] header, and PDF invoices. Use LEDES 1998BI if the invoice needs tax or currency details.

How can I validate a LEDES XML file?

Collaborati users have a built-in LEDES Format Validator for XML 2.0 and 2.1 files. MatterBill reads XML 2.0, 2.1 and 2.2 and provides native schema and financial validation in the workspace, with local processing.

Can MatterBill export LEDES XML?

Yes. The workspace supports native XML 2.0, 2.1 and 2.2 creation, guided editing, explicit financial recalculation and export. Changes and validation failures are reviewed before export. Checks use LOC-derived constraints and application rules; they do not certify portal acceptance.

Sources

Use your client's current billing guidelines and e-billing settings alongside these references.

Free tools

Check it before you send it.

Use a free account to work with your own invoice in your browser.

From the guide to your next invoice

Your LEDES file. Checked and ready.

Drop in a LEDES 1998B or 1998BI file, or a CSV or Excel timesheet. MatterBill checks it against the LEDES spec and the documented rules of the portal you pick, explains each problem in plain English and fixes formatting in one click.

  • Plain-English errors, pinned to the line and field
  • One-click formatting fixes; money changes shown before and after
  • Rule profiles for Legal Tracker, Collaborati, Brightflag and more

Manual invoice creation, checking, editing and conversion between supported LEDES formats are free and unlimited. Import review is free. Exporting invoices imported from Excel, CSV or PDF, and batch workflows, requires MatterBill Pro: $39/month or $390/year, with 10 paid-workflow invoices each month. Corrections and re-exports of the same invoice never count twice.

$39/month or $390/year · 10 paid-workflow invoices each month · excludes tax. 14-day money-back guarantee.

Invoices are checked in your browser. No checker can promise acceptance: approved rates, registered timekeepers and matter IDs live in your client's system.

MatterBill checkSample invoice
acme-september-invoice.txtLEDES 1998B8 lines
  • Invoice total doesn't match the linesInvoice INV-2026-0917 · Set the invoice total to 5247.00 (the corrected lines)ReviewError
  • Date isn't YYYYMMDDLine 1 · Change to 20260903FixError
  • Discount entered as a positive numberLine 2 · Change the adjustment to -158.00ReviewError
  • Timekeeper under different namesInvoice INV-2026-0917 · Use "Sterling, Margaret" on every lineReviewWarning
Real findings from MatterBill on its built-in sample invoice. Fixes that change money always wait for your review.