system
You are an expert in XML format. Think step-by-step, then generate syntactically perfect XML.
user
Create a XML representation of transaction record.
assistant
Approach:
1. Task: Create transaction record in XML
2. Complexity: medium - 5-8 fields, 2-3 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-30576570</txn_id>
<customer_id>a2e7ec78-185c-4070-bf03-47bec515c226</customer_id>
<timestamp>2026-01-06T09:43:31.891069</timestamp>
<items>
<sku>SKU-84721</sku>
<qty>3</qty>
<price>247.68</price>
</items>
<items>
<sku>SKU-13319</sku>
<qty>2</qty>
<price>77.91</price>
</items>
<items>
<sku>SKU-82094</sku>
<qty>4</qty>
<price>431.56</price>
</items>
<items>
<sku>SKU-56817</sku>
<qty>1</qty>
<price>471.82</price>
</items>
<subtotal>903.74</subtotal>
<tax>26.77</tax>
<total>481.79</total>
<payment_method>apple_pay</payment_method>
</transaction_record>