Skip to content
Novus Examples
xml975 B

Pine Assembly Workshop: Bill of materials XML

Bill of materials XML for Pine Assembly Workshop. The same structure as genuinely nested XML rather than a flat list with a level column, so a reader has to walk the tree and multiply quantities down the path to reach a leaf requirement. SCREW appears in two different branches with different quantities per parent, 8 under BASE and 4 under TOP.

xml

application/xml

975 B
Document Set
manufacturing
Industry
manufacturing
Source Kit
inventory-manufacturing
Entity
Pine Assembly Workshop
Synthetic
true
As Of
2026-09-08

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

Specifications

Document Set
manufacturing
Industry
manufacturing
Source Kit
inventory-manufacturing
Entity
Pine Assembly Workshop
Synthetic
true
As Of
2026-09-08
Levels
2
Multi Path Components
1
Encoding
UTF-8
Leaf Per Unit LEG
4
Leaf Per Unit PANEL
1
Leaf Per Unit SCREW
12

Testing contract

Expected to pass
Scenario
Walk the tree, multiply quantityPerParent down each path and total by component.
Expected result
The walk gives 4 LEG, 1 PANEL and 12 SCREW per finished unit. Reading only the first SCREW element gives 8, which is short by 4.

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

“Pine Assembly Workshop: Bill of materials XML” is a deterministic Novus Examples fixture for Data import, Schema validation. Realistic faker-generated datasets with documented schemas for testing import and ETL flows.

Documented properties for this file: UTF-8. 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.

Data fixtures document their exact quirks (delimiters, encodings, null handling, schema, and row counts) in the spec table. Point your parser or importer at the file and assert it handles the documented edge cases; clean and deliberately-messy siblings make before/after diffs straightforward.

Code examples

import xml.etree.ElementTree as ET

tree = ET.parse("bill-of-materials.xml")
root = tree.getroot()
print(root.tag, [c.tag for c in root][:5])

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