xml
What is a .xml file?
application/xml
XML (Extensible Markup Language) is a verbose, self-describing markup language using nested tags, attributes, and namespaces to represent structured, hierarchical data. It supports schemas, entities, and validation and underlies many document and data formats. It remains common in enterprise, publishing, and interchange contexts.
How to use a .xml file
Use an example XML file to test parsers, namespace and schema validation, XPath queries, and protection against entity-expansion and external-entity attacks.
Download example .xml files
- Alder Table Bistro: UBL 2.1 invoice XMLUBL 2.1 invoice XML for Alder Table Bistro. OASIS UBL 2.1 Invoice for INV-BST-5001 with 3 InvoiceLine elements, a TaxTotal of 10.38 on a taxable amount of 207.60, and a PayableAmount of 217.98 CAD. OrderReference names PO-BST-1001 and DespatchDocumentReference names GRN-BST-2001, both of which exist in this folder.
- Alder Table Bistro: UBL 2.1 credit note XMLUBL 2.1 credit note XML for Alder Table Bistro. OASIS UBL 2.1 CreditNote for CN-BST-7002 with type code 381, a BillingReference to invoice INV-BST-5004 dated 2026-08-28, one CreditNoteLine of 5 l and a PayableAmount of 40.90 CAD. It carries the same over-credit as credit-note.pdf: 2 units more than GRN-BST-2004 records returned.
- Alder Table Bistro: Factur-X CII invoice XMLFactur-X CII invoice XML for Alder Table Bistro. UN/CEFACT Cross Industry Invoice for INV-BST-5001 at the Factur-X BASIC guideline, with 3 trade line items, a TaxTotalAmount of 10.38 and a DuePayableAmount of 217.98 CAD. These bytes are the exact bytes embedded as factur-x.xml inside invoice-facturx.pdf.
- Juniper Corner Cafe: UBL 2.1 invoice XMLUBL 2.1 invoice XML for Juniper Corner Cafe. OASIS UBL 2.1 Invoice for INV-CAF-5001 with 3 InvoiceLine elements, a TaxTotal of 16.53 on a taxable amount of 330.69, and a PayableAmount of 347.22 CAD. OrderReference names PO-CAF-1001 and DespatchDocumentReference names GRN-CAF-2001, both of which exist in this folder.
- Juniper Corner Cafe: UBL 2.1 credit note XMLUBL 2.1 credit note XML for Juniper Corner Cafe. OASIS UBL 2.1 CreditNote for CN-CAF-7002 with type code 381, a BillingReference to invoice INV-CAF-5004 dated 2026-08-28, one CreditNoteLine of 5 each and a PayableAmount of 7.98 CAD. It carries the same over-credit as credit-note.pdf: 2 units more than GRN-CAF-2004 records returned.
- Juniper Corner Cafe: Factur-X CII invoice XMLFactur-X CII invoice XML for Juniper Corner Cafe. UN/CEFACT Cross Industry Invoice for INV-CAF-5001 at the Factur-X BASIC guideline, with 3 trade line items, a TaxTotalAmount of 16.53 and a DuePayableAmount of 347.22 CAD. These bytes are the exact bytes embedded as factur-x.xml inside invoice-facturx.pdf.
- Copper Oven Bakery: UBL 2.1 invoice XMLUBL 2.1 invoice XML for Copper Oven Bakery. OASIS UBL 2.1 Invoice for INV-BAK-5001 with 3 InvoiceLine elements, a TaxTotal of 8.27 on a taxable amount of 165.41, and a PayableAmount of 173.68 CAD. OrderReference names PO-BAK-1001 and DespatchDocumentReference names GRN-BAK-2001, both of which exist in this folder.
- Copper Oven Bakery: UBL 2.1 credit note XMLUBL 2.1 credit note XML for Copper Oven Bakery. OASIS UBL 2.1 CreditNote for CN-BAK-7002 with type code 381, a BillingReference to invoice INV-BAK-5004 dated 2026-08-28, one CreditNoteLine of 5 kg and a PayableAmount of 25.94 CAD. It carries the same over-credit as credit-note.pdf: 2 units more than GRN-BAK-2004 records returned.
and 131 more in the library.