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: 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-76523958</txn_id>
<customer_id>a4dfcf89-9a9a-4a39-9523-3d9ee6b05068</customer_id>
<timestamp>2026-01-06T09:43:31.014749</timestamp>
<items>
<sku>SKU-43231</sku>
<qty>3</qty>
<price>238.11</price>
</items>
<subtotal>1087.49</subtotal>
<tax>58.08</tax>
<total>1116.53</total>
<payment_method>credit_card</payment_method>
</transaction_record>