system
You are an expert in XML format. Think step-by-step, then generate syntactically perfect XML.
user
Output transaction record as XML.
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-47298060</txn_id>
<customer_id>99acb16f-f8b4-41e4-ae62-9ae20ed20eaf</customer_id>
<timestamp>2026-01-06T09:43:29.703655</timestamp>
<items>
<sku>SKU-93150</sku>
<qty>2</qty>
<price>14.35</price>
</items>
<items>
<sku>SKU-57512</sku>
<qty>4</qty>
<price>71.34</price>
</items>
<subtotal>220.17</subtotal>
<tax>160.21</tax>
<total>114.14</total>
<payment_method>apple_pay</payment_method>
</transaction_record>