system
You are an expert in XML format. Think step-by-step, then generate syntactically perfect XML.
user
Produce a XML document for a transaction record.
assistant
Approach:
1. Task: Create transaction record in XML
2. Complexity: complex - 8-10 fields, 3-4 levels
3. Format rules: well-formed tags, proper nesting, escaped special chars
4. Structure: Organize data logically with appropriate nesting
5. Populate fields with realistic example data based on the schema.

Output:
<?xml version="1.0" encoding="UTF-8"?>
<transaction_record>
<txn_id>TXN-98954474</txn_id>
<customer_id>ac364ac2-d92b-4834-a49c-47c2d399ec87</customer_id>
<timestamp>2026-01-06T09:43:31.108755</timestamp>
<items>
<sku>SKU-74302</sku>
<qty>4</qty>
<price>452.91</price>
</items>
<items>
<sku>SKU-52720</sku>
<qty>2</qty>
<price>224.23</price>
</items>
<items>
<sku>SKU-68694</sku>
<qty>1</qty>
<price>477.08</price>
</items>
<items>
<sku>SKU-40474</sku>
<qty>3</qty>
<price>137.31</price>
</items>
<subtotal>1835.64</subtotal>
<tax>146.65</tax>
<total>1321.62</total>
<payment_method>paypal</payment_method>
</transaction_record>