Skip to content
Novus Examples
xml4.3 KB

Alder Table Bistro: UBL 2.1 credit note XML

UBL 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.

xml

application/xml

4.3 KB
Kit
restaurant-bistro
Schema Version
1
Synthetic
true
As Of
2026-09-08
Currency
CAD
Tax Name
GST

Binary xml: no in-browser preview. Download it above to open in a compatible application.

Specifications

Kit
restaurant-bistro
Schema Version
1
Synthetic
true
As Of
2026-09-08
Currency
CAD
Tax Name
GST
Tax Rate
0.05
Document Number
CN-BST-7002
Standard
OASIS UBL 2.1
Type Code
381
Over Credited Units
2
Intentionally Inconsistent
true

Testing contract

Expected to fail
Scenario
Read ubl 2.1 credit note xml into a procure-to-pay import, three-way match and reconciliation workflow for Alder Table Bistro.
Expected result
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.

What is a .xml file?

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 this file

Use an example XML file to test parsers, namespace and schema validation, XPath queries, and protection against entity-expansion and external-entity attacks.

How to use this file for testing

“Alder Table Bistro: UBL 2.1 credit note XML” is a deterministic Novus Examples fixture for Data import, Conversion testing, Error handling. Realistic faker-generated datasets with documented schemas for testing import and ETL flows.

Documented properties for this file: XML · 4,387 bytes. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such, expect parsers to fail loudly rather than silently accept them.

Document fixtures list their internal structure (pages, fields, tracked changes, embedded objects) in the spec table. Test extractors, converters, and OCR against that known structure, and compare searchable↔scanned or format-twin companions when present.

Code examples

import xml.etree.ElementTree as ET

tree = ET.parse("credit-note-ubl.xml")
root = tree.getroot()
print(root.tag, [c.tag for c in root][:5])

Generated by generation/restaurant_procurement.py. Free for any use, no attribution required, license.